mirror of https://github.com/django/django.git
Alphabetized ESLint rules.
This commit is contained in:
parent
e46f700e39
commit
95289e1029
10
.eslintrc
10
.eslintrc
|
@ -2,24 +2,24 @@
|
||||||
"rules": {
|
"rules": {
|
||||||
"camelcase": ["off", {"properties": "always"}],
|
"camelcase": ["off", {"properties": "always"}],
|
||||||
"comma-spacing": ["error", {"before": false, "after": true}],
|
"comma-spacing": ["error", {"before": false, "after": true}],
|
||||||
"dot-notation": ["error", {"allowKeywords": true}],
|
|
||||||
"curly": ["error", "all"],
|
"curly": ["error", "all"],
|
||||||
|
"dot-notation": ["error", {"allowKeywords": true}],
|
||||||
"indent": ["error", 4],
|
"indent": ["error", 4],
|
||||||
"key-spacing": ["error", {"beforeColon": false, "afterColon": true}],
|
"key-spacing": ["error", {"beforeColon": false, "afterColon": true}],
|
||||||
|
"linebreak-style": ["error", "unix"],
|
||||||
"new-cap": ["off", {"newIsCap": true, "capIsNew": true}],
|
"new-cap": ["off", {"newIsCap": true, "capIsNew": true}],
|
||||||
"no-alert": ["off"],
|
"no-alert": ["off"],
|
||||||
"no-eval": ["error"],
|
"no-eval": ["error"],
|
||||||
"no-extend-native": ["error", {"exceptions": ["Date", "String"]}],
|
"no-extend-native": ["error", {"exceptions": ["Date", "String"]}],
|
||||||
"no-multi-spaces": ["error"],
|
"no-multi-spaces": ["error"],
|
||||||
"no-octal-escape": ["error"],
|
"no-octal-escape": ["error"],
|
||||||
"no-underscore-dangle": ["error"],
|
|
||||||
"no-unused-vars": ["error", {"vars": "local", "args": "none"}],
|
|
||||||
"no-script-url": ["error"],
|
"no-script-url": ["error"],
|
||||||
"no-shadow": ["error", {"hoist": "functions"}],
|
"no-shadow": ["error", {"hoist": "functions"}],
|
||||||
|
"no-underscore-dangle": ["error"],
|
||||||
|
"no-unused-vars": ["error", {"vars": "local", "args": "none"}],
|
||||||
"no-var": ["error"],
|
"no-var": ["error"],
|
||||||
"quotes": ["off", "single"],
|
|
||||||
"linebreak-style": ["error", "unix"],
|
|
||||||
"prefer-const": ["error"],
|
"prefer-const": ["error"],
|
||||||
|
"quotes": ["off", "single"],
|
||||||
"semi": ["error", "always"],
|
"semi": ["error", "always"],
|
||||||
"space-before-blocks": ["error", "always"],
|
"space-before-blocks": ["error", "always"],
|
||||||
"space-before-function-paren": ["error", {"anonymous": "never", "named": "never"}],
|
"space-before-function-paren": ["error", {"anonymous": "never", "named": "never"}],
|
||||||
|
|
Loading…
Reference in New Issue