forked from novnc/noVNC
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always use the shorthand notation if the function is a method of an object or class `{ foo() { ... } }` or `class bar { foo() { ... } }` unless it's a callback in which case you a fat arrow function should be used `{ cb: () => { ... } }`
- Loading branch information
1 parent
67fefcf
commit 0e4808b
Showing
20 changed files
with
997 additions
and
992 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 |
---|---|---|
@@ -1,15 +1,17 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es6": true | ||
}, | ||
"parserOptions": { | ||
"sourceType": "module" | ||
}, | ||
"extends": "eslint:recommended", | ||
"rules": { | ||
"no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": true }], | ||
"no-constant-condition": ["error", { "checkLoops": false }], | ||
"no-var": "error" | ||
} | ||
"env": { | ||
"browser": true, | ||
"es6": true | ||
}, | ||
"parserOptions": { | ||
"sourceType": "module" | ||
}, | ||
"extends": "eslint:recommended", | ||
"rules": { | ||
"no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": true }], | ||
"no-constant-condition": ["error", { "checkLoops": false }], | ||
"no-var": "error", | ||
"no-useless-constructor": "error", | ||
"object-shorthand": ["error", "methods", { "avoidQuotes": true }], | ||
} | ||
} |
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.