forked from codeforboston/cliff-effects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
54 lines (53 loc) · 1.95 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
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true
},
"extends": "react-app",
"plugins": [
"babel",
"react"
],
"rules": {
"babel/no-invalid-this": 1,
"babel/semi": 1,
"react/prop-types": 0,
"array-bracket-newline": ["warn", { "multiline": true }],
"array-bracket-spacing": ["warn", "always"],
"array-element-newline": ["warn", "always"],
"arrow-body-style": ["warn", "always"],
"arrow-parens": ["warn", "always"],
"comma-dangle": ["warn", "always-multiline"],
"computed-property-spacing": ["warn", "always"],
"curly": ["warn", "all"],
"eol-last": ["warn", "always"],
"func-style": ["warn", "expression"],
"indent": ["warn", 2, { "VariableDeclarator": { "var": 2, "let": 2, "const": 3 } }],
"key-spacing": ["warn", { "align": "value" }],
"keyword-spacing": ["warn", { "before": true, "after": true }],
"max-statements-per-line": ["warn", { "max": 1 }],
"object-curly-newline": ["warn", { "multiline": true }],
"object-curly-spacing": ["warn", "always", { "arraysInObjects": false, "objectsInObjects": false }],
"object-property-newline": ["warn", { "allowAllPropertiesOnSameLine": true }],
"quotes": ["warn", "single", { "allowTemplateLiterals": true }],
"react/jsx-closing-bracket-location": ["warn", "after-props"],
"react/jsx-closing-tag-location": ["warn"],
"react/jsx-curly-spacing": ["warn", "always", { "spacing": { "objectLiterals": "never" }}],
"react/jsx-first-prop-new-line": ["warn", "multiline-multiprop"],
"react/jsx-indent": ["warn", 2],
"react/jsx-indent-props": ["warn", 2],
"react/jsx-max-props-per-line": ["warn", { "maximum": 1 }],
"react/jsx-tag-spacing": ["warn"],
"react/self-closing-comp": "warn",
"space-in-parens": ["warn", "never"],
"space-infix-ops": ["warn"],
"no-var": ["warn"]
}
}