forked from beta-district/styleguide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslintrc.js
37 lines (37 loc) · 1.36 KB
/
eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
module.exports = {
"extends": ["eslint:recommended"],
"rules": {
"arrow-parens": ["warn", "as-needed"],
"brace-style": ["error", "1tbs", {"allowSingleLine": true}],
"camelcase": "warn",
"comma-spacing": "warn",
"curly": ["error", "multi-line"],
"dot-notation": "warn",
"eol-last": "warn",
"eqeqeq": ["warn", "allow-null"],
"indent": ["error", "tab", {"SwitchCase": 1}],
"jsx-quotes": ["error", "prefer-double"],
"key-spacing": "warn",
"keyword-spacing": "error",
"max-len": ["warn", 140],
"no-case-declarations": "off",
"no-class-assign": "off",
"no-console": "warn",
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
"no-multi-spaces": "warn",
"no-nested-ternary": "error",
"no-trailing-spaces": "warn",
"no-unused-vars": ["warn", {"vars": "local", "args": "none"}],
"no-useless-constructor": "warn",
"no-whitespace-before-property": "warn",
"padded-blocks": ["warn", {"blocks": "never", "classes": "never", "switches": "never"}],
"prefer-template": "warn",
"quote-props": ["warn", "as-needed"],
"quotes": ["error", "single", "avoid-escape"],
"semi": ["warn", "always", {"omitLastInOneLineBlock": true}],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", "never"],
"space-infix-ops": "warn",
"strict": ["warn", "never"]
}
}