-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove js-beautify and improve ESLint config (#590)
Before, there were two linters doing the same thing: linting and fixing lint errors. Now, there is only one, ESLint. The js-beautify config is merged in the ESLint config as best as I could do. There is almost no documentation about the rules of js-beautify, so this was a bit hard. ESLint was updated to v3, which provides auto-fixing of some rules. I also checked the new ESLint config against the main webpack repo. This caused some extra linting errors (~40), but these were all valid violations.
- Loading branch information
Showing
10 changed files
with
52 additions
and
65 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,28 +1,48 @@ | ||
{ | ||
"env": { | ||
"node": true | ||
"node": true, | ||
"browser": true | ||
}, | ||
"plugins": [ | ||
"nodeca" | ||
], | ||
"rules": { | ||
"strict": 0, | ||
"camelcase": 0, | ||
"curly": 0, | ||
"indent": [0, "tab"], | ||
"nodeca/indent": [2, "tabs", 1], | ||
"eol-last": 2, | ||
"no-shadow": 0, | ||
"no-redeclare": 2, | ||
"no-extra-bind": 2, | ||
"no-empty": 0, | ||
"no-process-exit": 2, | ||
"no-underscore-dangle": 0, | ||
"no-use-before-define": 0, | ||
"no-unused-vars": 0, | ||
"consistent-return": 0, | ||
"no-inner-declarations": 2, | ||
"no-loop-func": 2, | ||
"space-before-function-paren": [2, "never"] | ||
"indent": [2, "tab", { "SwitchCase": 1 }], | ||
"brace-style": ["error", "1tbs"], | ||
"no-eval": "error", | ||
"eol-last": "error", | ||
"no-redeclare": "error", | ||
"no-extra-bind": "error", | ||
"no-process-exit": "error", | ||
"no-inner-declarations": "warn", | ||
"no-loop-func": "warn", | ||
"no-undef": "error", | ||
"no-trailing-spaces": "error", | ||
"space-before-function-paren": ["error", "never"], | ||
"no-multi-spaces": "error", | ||
"space-in-parens": "error", | ||
"space-before-blocks": "error", | ||
"no-unused-vars": "error", | ||
"no-dupe-keys": "error", | ||
"valid-typeof": "error", | ||
"space-infix-ops": "error", | ||
"no-negated-in-lhs": "error", | ||
"no-octal": "error", | ||
"no-regex-spaces": "error", | ||
"no-self-assign": "error", | ||
"no-sparse-arrays": "error", | ||
"no-unexpected-multiline": "error", | ||
"no-unreachable": "error", | ||
"no-extra-semi": "error", | ||
"no-func-assign": "error", | ||
"no-invalid-regexp": "error", | ||
"keyword-spacing": ["error", { | ||
"after": false, | ||
"overrides": { | ||
"try": {"after": true}, | ||
"else": {"after": true}, | ||
"case": {"after": true}, | ||
"return": {"after": true}, | ||
"finally": {"after": true}, | ||
"do": {"after": true} | ||
} | ||
}] | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
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
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