Created
September 3, 2018 22:59
-
-
Save FirePanther/4323403735239585e328d43798a6dd76 to your computer and use it in GitHub Desktop.
my eslint rules and settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"env": { | |
"browser": true | |
}, | |
"parserOptions": { | |
"ecmaVersion": 5 | |
}, | |
"rules": { | |
"no-undef": 0, | |
"no-cond-assign": [ | |
2, | |
"except-parens" | |
], | |
"no-console": 1, | |
"no-constant-condition": 2, | |
"no-debugger": 1, | |
"no-dupe-args": 2, | |
"no-dupe-keys": 2, | |
"no-duplicate-case": 2, | |
"no-empty-character-class": 2, | |
"no-empty": 2, | |
"no-ex-assign": 2, | |
"no-extra-boolean-cast": 2, | |
"no-extra-parens": [ | |
1, | |
"all" | |
], | |
"no-extra-semi": 2, | |
"no-func-assign": 2, | |
"no-inner-declarations": [ | |
2, | |
"both" | |
], | |
"no-invalid-regexp": 2, | |
"no-irregular-whitespace": 2, | |
"no-obj-calls": 2, | |
"no-regex-spaces": 2, | |
"no-sparse-arrays": 2, | |
"no-unreachable": 2, | |
"use-isnan": 2, | |
"valid-typeof": 2, | |
"no-unexpected-multiline": 2, | |
"consistent-return": 1, | |
"curly": [ | |
1, | |
"multi-line" | |
], | |
"dot-notation": 2, | |
"eqeqeq": [ | |
2, | |
"smart" | |
], | |
"no-caller": 2, | |
"no-div-regex": 2, | |
"no-else-return": 2, | |
"no-eval": 2, | |
"no-extend-native": 2, | |
"no-fallthrough": 2, | |
"no-implied-eval": 2, | |
"no-invalid-this": 2, | |
"no-labels": 2, | |
"no-lone-blocks": 2, | |
"no-loop-func": 2, | |
"no-multi-spaces": 2, | |
"no-multi-str": 2, | |
"no-octal": 2, | |
"no-redeclare": 2, | |
"no-script-url": 2, | |
"no-self-compare": 2, | |
"no-warning-comments": [ | |
1, | |
{ | |
"terms": [ | |
"todo" | |
] | |
} | |
], | |
"no-catch-shadow": 2, | |
"no-delete-var": 2, | |
"brace-style": [ | |
2, | |
"1tbs", | |
{ | |
"allowSingleLine": true | |
} | |
], | |
"camelcase": [ | |
2, | |
{ | |
"properties": "always" | |
} | |
], | |
"comma-spacing": [ | |
2, | |
{ | |
"after": true | |
} | |
], | |
"comma-style": 2, | |
"consistent-this": [ | |
2, | |
"self" | |
], | |
"indent": [ | |
2, | |
"tab", | |
{ | |
"SwitchCase": 1 | |
} | |
], | |
"key-spacing": [ | |
2, | |
{ | |
"afterColon": true | |
} | |
], | |
"no-mixed-spaces-and-tabs": [ | |
2, | |
"smart-tabs" | |
], | |
"no-multiple-empty-lines": [ | |
2, | |
{ | |
"max": 2 | |
} | |
], | |
"no-spaced-func": 2, | |
"no-trailing-spaces": [ | |
2, | |
{ | |
"skipBlankLines": true | |
} | |
], | |
"no-unneeded-ternary": 2, | |
"one-var": [ | |
2, | |
"consecutive" | |
], | |
"spaced-comment": [ | |
2, | |
"always", | |
{} | |
], | |
"max-len": [ | |
2, | |
{"code":320} | |
], | |
"max-params": [ | |
2, | |
5 | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment