-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.json
46 lines (46 loc) · 1.31 KB
/
.eslintrc.json
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
38
39
40
41
42
43
44
45
46
{
"env": {
"es6": false,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module"
},
"rules": {
"prefer-const": "warn",
"no-const-assign": "warn",
"no-new-object": "error",
"quote-props": "off",
"no-unused-vars": "warn",
"no-array-constructor": "error",
"template-curly-spacing": "error",
"no-useless-escape": "error",
"wrap-iife": "warn",
"no-loop-func": "error",
"no-param-reassign": "warn",
"no-console": "off",
"linebreak-style": "off",
"quotes": ["error", "single"],
"semi": ["error", "always"],
"no-useless-constructor": "error",
"no-dupe-class-members": "error",
"dot-notation": "error",
"one-var": ["warn", "never"],
"no-unneeded-ternary": "error",
"no-undef": "warn",
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"space-before-blocks": ["error", "always"],
"keyword-spacing": "error",
"space-infix-ops": "error",
"newline-per-chained-call": "warn",
"padded-blocks": ["warn", "never"],
"space-in-parens": "error",
"array-bracket-spacing": "error",
"max-len": ["warn", 120],
"comma-style": "error",
"camelcase": "warn",
"new-cap": "warn",
"no-extra-boolean-cast": "off"
}
}