diff options
author | Trey Hunner <trey@treyhunner.com> | 2015-04-27 21:12:31 -0700 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2015-06-27 16:36:26 -0400 |
commit | ec4f219ecb7a5e43d0353633fac4dac42d0ee492 (patch) | |
tree | 149080086a963899ec8ca36f7ad8e086f81ce521 /.eslintrc | |
parent | 1e63652e44f1c12c6e0fec6dacfae0c865b7cdbf (diff) | |
download | django-ec4f219ecb7a5e43d0353633fac4dac42d0ee492.tar.gz |
Fixed #22463 -- Added code style guide and JavaScript linting (EditorConfig and ESLint)
Diffstat (limited to '.eslintrc')
-rw-r--r-- | .eslintrc | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000000..4d8f385896 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,51 @@ +{ + "rules": { + "camelcase": [1, {"properties": "always"}], + "comma-spacing": [1, {"before": false, "after": true}], + "dot-notation": [1, {"allowKeywords": true}], + "curly": [1, "all"], + "indent": [ + 2, + 4 + ], + "key-spacing": [1, { + "beforeColon": false, + "afterColon": true + }], + "new-cap": [1, {"newIsCap": true, "capIsNew": true}], + "no-alert": [0], + "no-eval": [1], + "no-extend-native": [2, {"exceptions": ["Date", "String"]}], + "no-multi-spaces": [1], + "no-octal-escape": [1], + "no-underscore-dangle": [1], + "no-unused-vars": [2, {"vars": "local", "args": "none"}], + "no-script-url": [1], + "no-shadow": [1, {"hoist": "functions"}], + "quotes": [ + 1, + "single" + ], + "linebreak-style": [ + 2, + "unix" + ], + "semi": [ + 2, + "always" + ], + "space-before-blocks": [2, "always"], + "space-before-function-paren": [1, {"anonymous": "always", "named": "never"}], + "space-infix-ops": [ + 1, + {"int32Hint": false} + ], + "strict": [1, "function"] + }, + "env": { + "browser": true + }, + "globals": { + "django": false + } +}
\ No newline at end of file |