mirror of
https://github.com/thegecko/web-bluetooth-dfu.git
synced 2025-12-13 20:48:15 +08:00
Switched to using eslint
This commit is contained in:
18
.eslintrc
Normal file
18
.eslintrc
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"env": {
|
||||
"browser": true,
|
||||
"node": true,
|
||||
"es6": true
|
||||
},
|
||||
"globals": {
|
||||
"define": true
|
||||
},
|
||||
rules: {
|
||||
"semi": ["error"],
|
||||
"indent": ["error", 4, { "SwitchCase": 1 }],
|
||||
"no-irregular-whitespace": ["error"],
|
||||
"linebreak-style": ["warn", "unix"],
|
||||
"no-undef": ["warn"],
|
||||
"no-unused-vars": ["warn"]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user