-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
86 lines (86 loc) · 2.75 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"env": {
"browser": true,
"es6": true,
"node": true,
"jest": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2017,
"sourceType": "module"
},
"parser": "babel-eslint",
"plugins": ["flowtype", "async-await"],
"settings": {
"polyfills": ["fetch"]
},
"rules": {
"array-bracket-spacing": ["error", "never"],
"array-callback-return": 2,
"arrow-spacing": "error",
"async-await/space-after-async": 2,
"async-await/space-after-await": 2,
"brace-style": ["error", "stroustrup"],
"comma-dangle": ["error", "only-multiline"],
"comma-spacing": ["error", {"before": false, "after": true}],
"computed-property-spacing": ["error", "never"],
"cond-assign": 0,
"dot-notation": "error",
"eqeqeq": "error",
"generator-star-spacing": ["error", "before"],
"indent": ["error", "tab"],
"key-spacing": ["error", {"beforeColon": false, "afterColon": true}],
"keyword-spacing": ["error", {"before": true}],
"linebreak-style": ["error", "unix"],
"max-len": [1, 100, 3],
"named": 0,
"no-array-constructor": 2,
"no-console": ["warn", {"allow": ["warn", "error", "info"]}],
"no-dupe-class-members": "error",
"no-dupe-keys": 2,
"no-else-return": "error",
"no-empty": "error",
"no-extra-parens": "error",
"no-func-assign": "error",
"no-label-var": "error",
"no-lone-blocks": "error",
"no-mixed-spaces-and-tabs": "error",
"no-multi-spaces": "error",
"no-multi-str": "error",
"no-multiple-empty-lines": ["warn", {"max": 1, "maxBOF": 0, "maxEOF": 0}],
"no-path-concat": "error",
"no-redeclare": ["error", {"builtinGlobals": true}],
"no-script-url": "error",
"no-self-compare": "error",
"no-shadow-restricted-names": "error",
"no-shadow": ["error", {"allow": ["done"]}],
"no-sync": ["error", {"allowAtRootLevel": true}],
"no-trailing-spaces": "error",
"no-undef": "error",
"no-unreachable": "error",
"no-unused-labels": "off",
"no-unused-vars": ["error", { "ignoreRestSiblings": true }],
"no-use-before-define": ["error", {"functions": false, "classes": false}],
"no-useless-constructor": "error",
"object-curly-spacing": ["error", "never"],
"object-shorthand": ["error", "always"],
"prefer-spread": "error",
"prefer-template": 2,
"quotes": ["error", "backtick", {"allowTemplateLiterals": true}],
"radix": "error",
"semi": ["error", "never"],
"space-before-blocks": "error",
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", {"anonymous": "never", "named": "never", "asyncArrow": "always"}],
"space-in-parens": ["error", "never"],
"space-infix-ops": "error",
"spaced-comment": ["error", "always"],
"template-curly-spacing": ["error", "never"],
"use-isnan": "error",
"valid-jsdoc": "error",
"valid-typeof": "error"
}
}