This repository has been archived by the owner on Nov 7, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
79 lines (79 loc) · 2.74 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
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
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {"jsx": true},
"ecmaVersion": 2017,
"sourceType": "module"
},
"plugins": ["react"],
"rules": {
"array-bracket-spacing": ["error", "never"],
"array-callback-return": 2,
"arrow-spacing": "error",
"brace-style": ["error", "stroustrup"],
"comma-spacing": ["error", {"before": false, "after": true}],
"computed-property-spacing": ["error", "never"],
"cond-assign": 0,
"dot-notation": "error",
"eqeqeq": "error",
"generator-star-spacing": ["error", "after"],
"indent": ["error", 2, {"SwitchCase": 1}],
"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-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",
"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",
"no-var": "error",
"object-curly-spacing": ["error", "never"],
"object-shorthand": ["error", "always"],
"prefer-spread": "error",
"prefer-template": 2,
"quotes": ["error", "backtick", {"allowTemplateLiterals": true}],
"radix": "error",
"react/jsx-no-undef": [2, { "allowGlobals": true }],
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": [2],
"semi": ["error", "never"],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", {"anonymous": "always", "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"
}
}