-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
66 lines (66 loc) · 1.86 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
"env": {
"es6": true,
"node": true,
"browser": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
}
},
"plugins": [
],
"rules": {
"comma-dangle": [
"error",
"always-multiline"
],
"no-var": [
"error"
],
"indent": [
"error",
2
],
"no-console": 0,
"no-unused-vars": ["error", {"argsIgnorePattern": "^_$", "varsIgnorePattern": "^styles$"}],
"dot-location": ["error", "property"],
"dot-notation": "error",
"no-floating-decimal": "error",
"no-warning-comments": ["error", {"terms": ["fix", "xxx"], "location": "start"}],
"radix": ["error", "always"],
"brace-style": ["error", "1tbs", {"allowSingleLine": true}],
"comma-spacing": "error",
"key-spacing": "error",
"keyword-spacing": "error",
"block-spacing": "error",
"generator-star-spacing": "error",
"array-bracket-spacing": "error",
"computed-property-spacing": "error",
"eol-last": "error",
"linebreak-style": "error",
"jsx-quotes": ["error", "prefer-single"],
"quotes": ["error", "single", {"allowTemplateLiterals": true}],
"semi": ["error", "never"],
"space-before-blocks": "error",
"space-in-parens": "error",
"spaced-comment": "error",
"arrow-spacing": "error",
"template-curly-spacing": "error",
"arrow-body-style": "error",
"no-useless-computed-key": "error",
"no-useless-constructor": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"prefer-const": ["error", {"destructuring": "all"}],
"object-shorthand": "error",
"space-infix-ops": ["error", {"int32Hint": true}],
"no-duplicate-imports": ["error", {"includeExports": true}]
}
}