Improved readability of ESLint configuration.
Use "off"/"warn"/"error" instead of 0/1/2.
This commit is contained in:
parent
d5898db50e
commit
290eb98764
46
.eslintrc
46
.eslintrc
|
@ -1,28 +1,28 @@
|
||||||
{
|
{
|
||||||
"rules": {
|
"rules": {
|
||||||
"camelcase": [0, {"properties": "always"}],
|
"camelcase": ["off", {"properties": "always"}],
|
||||||
"comma-spacing": [2, {"before": false, "after": true}],
|
"comma-spacing": ["error", {"before": false, "after": true}],
|
||||||
"dot-notation": [2, {"allowKeywords": true}],
|
"dot-notation": ["error", {"allowKeywords": true}],
|
||||||
"curly": [2, "all"],
|
"curly": ["error", "all"],
|
||||||
"indent": [2, 4],
|
"indent": ["error", 4],
|
||||||
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
|
"key-spacing": ["error", {"beforeColon": false, "afterColon": true}],
|
||||||
"new-cap": [0, {"newIsCap": true, "capIsNew": true}],
|
"new-cap": ["off", {"newIsCap": true, "capIsNew": true}],
|
||||||
"no-alert": [0],
|
"no-alert": ["off"],
|
||||||
"no-eval": [2],
|
"no-eval": ["error"],
|
||||||
"no-extend-native": [2, {"exceptions": ["Date", "String"]}],
|
"no-extend-native": ["error", {"exceptions": ["Date", "String"]}],
|
||||||
"no-multi-spaces": [2],
|
"no-multi-spaces": ["error"],
|
||||||
"no-octal-escape": [2],
|
"no-octal-escape": ["error"],
|
||||||
"no-underscore-dangle": [2],
|
"no-underscore-dangle": ["error"],
|
||||||
"no-unused-vars": [2, {"vars": "local", "args": "none"}],
|
"no-unused-vars": ["error", {"vars": "local", "args": "none"}],
|
||||||
"no-script-url": [2],
|
"no-script-url": ["error"],
|
||||||
"no-shadow": [2, {"hoist": "functions"}],
|
"no-shadow": ["error", {"hoist": "functions"}],
|
||||||
"quotes": [0, "single"],
|
"quotes": ["off", "single"],
|
||||||
"linebreak-style": [2, "unix"],
|
"linebreak-style": ["error", "unix"],
|
||||||
"semi": [2, "always"],
|
"semi": ["error", "always"],
|
||||||
"space-before-blocks": [2, "always"],
|
"space-before-blocks": ["error", "always"],
|
||||||
"space-before-function-paren": [2, {"anonymous": "never", "named": "never"}],
|
"space-before-function-paren": ["error", {"anonymous": "never", "named": "never"}],
|
||||||
"space-infix-ops": [2, {"int32Hint": false}],
|
"space-infix-ops": ["error", {"int32Hint": false}],
|
||||||
"strict": [1, "function"]
|
"strict": ["warn", "function"]
|
||||||
},
|
},
|
||||||
"env": {
|
"env": {
|
||||||
"browser": true
|
"browser": true
|
||||||
|
|
Loading…
Reference in New Issue