mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
290eb98764
Use "off"/"warn"/"error" instead of 0/1/2.
34 lines
1.3 KiB
Plaintext
34 lines
1.3 KiB
Plaintext
{
|
|
"rules": {
|
|
"camelcase": ["off", {"properties": "always"}],
|
|
"comma-spacing": ["error", {"before": false, "after": true}],
|
|
"dot-notation": ["error", {"allowKeywords": true}],
|
|
"curly": ["error", "all"],
|
|
"indent": ["error", 4],
|
|
"key-spacing": ["error", {"beforeColon": false, "afterColon": true}],
|
|
"new-cap": ["off", {"newIsCap": true, "capIsNew": true}],
|
|
"no-alert": ["off"],
|
|
"no-eval": ["error"],
|
|
"no-extend-native": ["error", {"exceptions": ["Date", "String"]}],
|
|
"no-multi-spaces": ["error"],
|
|
"no-octal-escape": ["error"],
|
|
"no-underscore-dangle": ["error"],
|
|
"no-unused-vars": ["error", {"vars": "local", "args": "none"}],
|
|
"no-script-url": ["error"],
|
|
"no-shadow": ["error", {"hoist": "functions"}],
|
|
"quotes": ["off", "single"],
|
|
"linebreak-style": ["error", "unix"],
|
|
"semi": ["error", "always"],
|
|
"space-before-blocks": ["error", "always"],
|
|
"space-before-function-paren": ["error", {"anonymous": "never", "named": "never"}],
|
|
"space-infix-ops": ["error", {"int32Hint": false}],
|
|
"strict": ["warn", "function"]
|
|
},
|
|
"env": {
|
|
"browser": true
|
|
},
|
|
"globals": {
|
|
"django": false
|
|
}
|
|
}
|