diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2020-04-21 12:09:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-21 21:09:28 +0200 |
commit | 290eb987644c31aabcfd52d81bd5adcf7a1972aa (patch) | |
tree | 2c2f342da73baa62dfcc4a1004527b2cd1b23f92 /.eslintrc | |
parent | d5898db50ec6f77404d96eba5ddac9b50df407a7 (diff) | |
download | django-290eb987644c31aabcfd52d81bd5adcf7a1972aa.tar.gz |
Improved readability of ESLint configuration.
Use "off"/"warn"/"error" instead of 0/1/2.
Diffstat (limited to '.eslintrc')
-rw-r--r-- | .eslintrc | 46 |
1 files changed, 23 insertions, 23 deletions
@@ -1,28 +1,28 @@ { "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"] + "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 |