-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
88 lines (88 loc) · 2.53 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
87
88
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"mocha": true
},
"extends": ["eslint:all", "plugin:react/recommended"],
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"react",
"babel"
],
"globals": {
"React": false
},
"parser": "babel-eslint",
"rules": {
"camelcase": 0,
"array-element-newline": 0,
"no-unused-vars": ["error", { "varsIgnorePattern": "^h$" }],
"no-underscore-dangle": 0,
"generator-star-spacing": 0,
"quotes":[1, "single"],
"strict": 0,
"indent": ["error", 2, {"SwitchCase": 1}],
"linebreak-style": ["error", "unix"],
"semi": ["error", "never"],
"eol-last": "error",
"space-before-blocks": "error",
"space-before-function-paren": ["error", "never"],
"space-infix-ops": "error",
"prefer-const": ["error", {"destructuring": "all"}],
"no-multiple-empty-lines": ["error", {"max": 2}],
"id-length": "off",
"sort-imports": "off",
"sort-keys": "off",
"object-curly-newline": "off",
"quote-props": "off",
"padded-blocks": ["error", {"blocks": "never", "switches": "never"}],
"new-cap": "off",
"max-len": ["error", 120],
"no-undefined": "off",
"no-void": "off",
"newline-per-chained-call": "off",
"newline-after-var": "off",
"one-var": "off",
"arrow-body-style": ["error", "as-needed"],
"no-ternary": "off",
"object-property-newline": "off",
"func-style": "off",
"capitalized-comments": "off",
"require-jsdoc": "off",
"no-inline-comments": "off",
"line-comment-position": "off",
"spaced-comment": "off",
"no-warning-comments": "off",
"no-shadow": "off",
"newline-before-return": "off",
"no-magic-numbers": "off",
"no-confusing-arrow": "off",
"no-use-before-define": "off",
"no-extra-parens": "off",
"no-path-concat": "off",
"no-mixed-operators": "off",
"class-methods-use-this": "off",
"arrow-parens": "off",
"no-invalid-this": "off",
"multiline-ternary": "off",
"no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true }],
"dot-location": "off",
"global-require": "off",
"max-statements": ["error", 20],
"babel/generator-star-spacing": 1,
"babel/array-bracket-spacing": 1,
"babel/object-curly-spacing": 1,
"babel/object-shorthand": 1,
"babel/no-await-in-loop": 1,
"babel/flow-object-type": 1,
"babel/func-params-comma-dangle": 1
}
}