-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
53 lines (53 loc) · 1.8 KB
/
.eslintrc
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
47
48
49
50
51
52
53
{
"extends": "eslint:recommended",
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
},
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true
},
"rules": {
"array-bracket-spacing": ["error", "never"],
"array-callback-return": "error",
"arrow-parens": ["error", "always"],
"arrow-spacing": ["error", { "before": true, "after": true }],
"brace-style": ["error", "1tbs"],
"comma-dangle": ["error", "always-multiline"],
"comma-style": ["error", "last"],
"eqeqeq": "error",
"indent": ["error", 2, { "SwitchCase": 1 }],
"max-len": ["warn", 150],
"no-array-constructor": "error",
"no-case-declarations": "error",
"no-confusing-arrow": "error",
"no-console": ["error", { "allow": ["info", "warn", "error"] }],
"no-else-return": "error",
"no-duplicate-imports": "error",
"no-multiple-empty-lines": ["error", { "max": 2 }],
"no-multi-spaces": ["error", {"exceptions": { "AssignmentExpression": true, "VariableDeclarator": true, "ImportDeclaration": true, "Property": true }}],
"no-new-object": "error",
"no-param-reassign": "error",
"no-unused-vars": ["error", { "vars": "local", "args": "after-used" }],
"no-useless-escape": "error",
"no-var": "error",
"object-curly-spacing": ["error", "always"],
"object-shorthand": ["error", "properties"],
"one-var": ["error", "never"],
"padded-blocks": ["error", "never"],
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-template": "error",
"quotes": ["error", "single"],
"semi": ["error", "always"],
"space-before-blocks": ["error", "always"],
"space-infix-ops": ["error", {"int32Hint": false}],
}
}