forked from AlexanderBabel/homebridge-broadlink-rm
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added Eslint support * Fixed legitimate issues found with linting * Lint optimisation for all warn issues Co-authored-by: Angelo Perera <angelo.perera@nintex.com> Co-authored-by: Cameron <32912464+kiwi-cam@users.noreply.github.com>
- Loading branch information
1 parent
eb3dad0
commit d6f6445
Showing
38 changed files
with
2,235 additions
and
696 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"root": true, | ||
"plugins": [ | ||
"no-autofix" | ||
], | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"node": true, | ||
"jest": true | ||
}, | ||
"extends": "eslint:recommended", | ||
"globals": { | ||
"Atomics": "readonly", | ||
"SharedArrayBuffer": "readonly", | ||
|
||
"HistoryService":true, | ||
"Characteristic":true, | ||
"Service":true | ||
|
||
}, | ||
"ignorePatterns": [ | ||
], | ||
"parserOptions": { | ||
"ecmaVersion": 2018, | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
|
||
"global-require": "off", | ||
"no-unused-vars": "off", | ||
"no-mixed-spaces-and-tabs": "off", | ||
"no-fallthrough": "off", | ||
"no-unreachable": "off", | ||
"no-empty": "off", | ||
"no-console": "off", | ||
"quotes": "off", | ||
"brace-style": "off", | ||
"semi": "off", | ||
"comma-dangle": "off", | ||
"eqeqeq": "off", | ||
|
||
"no-extra-semi": "warn", | ||
"dot-notation": "warn", | ||
"no-autofix/prefer-const": "warn", | ||
|
||
"indent": ["error", 2, { "SwitchCase": 1 }], | ||
"linebreak-style": ["error", "unix"], | ||
"curly": 1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.