0
0
mirror of https://github.com/django/django.git synced 2024-11-28 10:48:32 +01:00
django/.eslintrc
Thomas Grainger d638cdc42a Fixed #25165 -- Removed inline JavaScript from the admin.
This allows setting a Content-Security-Policy HTTP header
(refs #15727).

Special thanks to blighj, the original author of this patch.
2015-12-05 15:51:57 -05:00

34 lines
1.1 KiB
Plaintext

{
"rules": {
"camelcase": [0, {"properties": "always"}],
"comma-spacing": [2, {"before": false, "after": true}],
"dot-notation": [2, {"allowKeywords": true}],
"curly": [2, "all"],
"indent": [2, 4],
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
"new-cap": [0, {"newIsCap": true, "capIsNew": true}],
"no-alert": [0],
"no-eval": [2],
"no-extend-native": [2, {"exceptions": ["Date", "String"]}],
"no-multi-spaces": [2],
"no-octal-escape": [2],
"no-underscore-dangle": [2],
"no-unused-vars": [2, {"vars": "local", "args": "none"}],
"no-script-url": [2],
"no-shadow": [2, {"hoist": "functions"}],
"quotes": [0, "single"],
"linebreak-style": [2, "unix"],
"semi": [2, "always"],
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, {"anonymous": "never", "named": "never"}],
"space-infix-ops": [2, {"int32Hint": false}],
"strict": [1, "function"]
},
"env": {
"browser": true
},
"globals": {
"django": false
}
}