-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Infrastructure: Add eslint rules from eslint:recommended config (pull #…
…1207) Perdiscussion in issue #1180, ad the eslint:recommended shareable config to eslint. Then fix errors. * chore: switch to eslint:recommended * chore: eslint fix with new config * fix: no-const-assign * fix: no-empty * fix: no-useless-escape * fix: no-duplicate-case * fix: no-constant-condition * fix: no-unsafe-negation * chore: ignore no-cond-assign * fix: no-redeclare * Option collides with built-in type * fix: no-prototype-builtins * chore: ignore currently failing rules
- Loading branch information
Showing
29 changed files
with
325 additions
and
406 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,109 +1,11 @@ | ||
{ | ||
"extends": "eslint:recommended", | ||
"env": { | ||
"browser": true | ||
}, | ||
"rules": { | ||
"no-with": 2, | ||
"no-mixed-spaces-and-tabs": 2, | ||
"no-multiple-empty-lines": 2, | ||
"no-multi-spaces": 0, | ||
"operator-linebreak": [ | ||
2, | ||
"after" | ||
], | ||
"quote-props": 0, | ||
"key-spacing": [ | ||
2, | ||
{ | ||
"afterColon": true | ||
} | ||
], | ||
"space-unary-ops": [ | ||
2, | ||
{ | ||
"words": false, | ||
"nonwords": false | ||
} | ||
], | ||
"no-spaced-func": 2, | ||
"array-bracket-spacing": [ | ||
2, | ||
"never", | ||
{ | ||
"singleValue": true | ||
} | ||
], | ||
"space-in-parens": [ | ||
2, | ||
"never" | ||
], | ||
"comma-dangle": [ | ||
2, | ||
"never" | ||
], | ||
"no-trailing-spaces": 2, | ||
"yoda": [ | ||
2, | ||
"never" | ||
], | ||
"camelcase": [ | ||
2, | ||
{ | ||
"properties": "always" | ||
} | ||
], | ||
"comma-style": [ | ||
2, | ||
"last" | ||
], | ||
"curly": [ | ||
2, | ||
"all" | ||
], | ||
"dot-notation": 2, | ||
"brace-style": [ | ||
2, | ||
"stroustrup", | ||
{ | ||
"allowSingleLine": true | ||
} | ||
], | ||
"eol-last": 2, | ||
"wrap-iife": 2, | ||
"semi": [ | ||
2, | ||
"always" | ||
], | ||
"space-infix-ops": 2, | ||
"keyword-spacing": [ | ||
2, | ||
{} | ||
], | ||
"spaced-comment": [ | ||
2, | ||
"always" | ||
], | ||
"space-before-blocks": [ | ||
2, | ||
"always" | ||
], | ||
"space-before-function-paren": [ | ||
2, | ||
"always" | ||
], | ||
"consistent-this": [ | ||
2, | ||
"self" | ||
], | ||
"indent": [ | ||
2, | ||
2, | ||
{ | ||
"SwitchCase": 1 | ||
} | ||
], | ||
"quotes": [ | ||
2, | ||
"single" | ||
], | ||
"no-eval": "error", | ||
"no-implied-eval": "error" | ||
"no-unused-vars": 0, | ||
"no-undef": 0, | ||
"no-fallthrough": 0 | ||
} | ||
} |
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
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.