-
Notifications
You must be signed in to change notification settings - Fork 148
/
.eslintrc.json
104 lines (104 loc) · 3.49 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"env": {
"browser": true,
"node": true,
"commonjs": true,
"es6": true
},
"parser": "babel-eslint",
"extends": ["eslint:recommended", "plugin:react/recommended"],
"parserOptions": {
"ecmaVersion": 2015,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"array-bracket-spacing": ["error"],
"arrow-body-style": ["error", "as-needed"],
"arrow-parens": ["error", "as-needed"],
"arrow-spacing": ["error"],
"block-spacing": ["error"],
"brace-style": ["error"],
"camelcase": ["error"],
"capitalized-comments": ["error"],
"comma-dangle": ["error"],
"comma-spacing": ["error"],
"comma-style": ["error"],
"computed-property-spacing": ["error"],
"curly": ["error"],
"dot-location": ["error", "property"],
"dot-notation": ["error"],
"eol-last": ["error"],
"func-call-spacing": ["error"],
"func-name-matching": ["error"],
"generator-star-spacing": ["error"],
"indent": ["error", 4, {
"SwitchCase": 1,
"MemberExpression": 1
}],
"jsx-quotes": ["error"],
"key-spacing": ["error"],
"keyword-spacing": ["error"],
"linebreak-style": ["error"],
"lines-around-comment": ["error", {
"beforeLineComment": true
}],
"lines-around-directive": ["error"],
"new-cap": ["error"],
"newline-after-var": ["error"],
"newline-before-return": ["error"],
"new-parens": ["error"],
"no-cond-assign": ["off"],
"no-console": ["off"],
"no-delete-var": ["off"],
"no-extra-bind": ["error"],
"no-extra-parens": ["error"],
"no-floating-decimal": ["error"],
"no-lonely-if": ["error"],
"no-multiple-empty-lines": ["error", {
"max": 1,
"maxBOF": 0,
"maxEOF": 0
}],
"no-multi-spaces": ["error"],
"no-redeclare": ["error"],
"no-trailing-spaces": ["error"],
"no-undef-init": ["error"],
"no-useless-computed-key": ["error"],
"no-useless-rename": ["error"],
"no-useless-return": ["error"],
"no-var": ["error"],
"no-whitespace-before-property": ["error"],
"object-curly-newline": ["error"],
"object-curly-spacing": ["error"],
"object-shorthand": ["error"],
"operator-assignment": ["error"],
"one-var": ["error"],
"one-var-declaration-per-line": ["error"],
"padded-blocks": ["error", "never"],
"prefer-arrow-callback": ["error"],
"prefer-spread": ["error"],
"prefer-template": ["error"],
"quotes": ["error", "single"],
"quote-props": ["error", "as-needed"],
"react/prop-types": ["off"],
"react/jsx-curly-spacing": ["error"],
"react/jsx-space-before-closing": ["error", "never"],
"rest-spread-spacing": ["error"],
"semi": ["error", "never"],
"space-before-blocks": ["error"],
"space-before-function-paren": ["error", "never"],
"space-in-parens": ["error", "never"],
"space-infix-ops": ["error"],
"space-unary-ops": ["error", {
"words": true,
"nonwords": false
}],
"spaced-comment": ["error"],
"template-curly-spacing": ["error"],
"yield-star-spacing": ["error"],
"yoda": ["error"]
}
}