This repository has been archived by the owner on May 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
118 lines (118 loc) · 2.8 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
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"parser": "babel-eslint",
"extends": ["eslint:recommended", "plugin:react/recommended"],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"impliedStrict": true,
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": [
"react",
"flowtype"
],
"globals": {
"define": true
},
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": true
},
"react": {
"version": "999.999.999"
}
},
"rules": {
"strict": ["error", "global"],
"no-unused-vars": 0,
"no-console": 0,
"arrow-spacing": "error",
"no-confusing-arrow": ["error", {
"allowParens": true
}],
"no-labels": "error",
"no-multiple-empty-lines": ["error", {
"max": 1,
"maxEOF": 1
}],
"key-spacing": ["error", {
"beforeColon": false
}],
"indent": [
"error",
2,
{
"SwitchCase": 1,
"flatTernaryExpressions": true
}
],
"comma-dangle": 2,
"no-dupe-args": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-empty": "error",
"no-unreachable": "error",
"no-multi-spaces": "error",
"quotes": ["error", "single"],
"semi": ["error", "always"],
"comma-spacing": ["error", {
"before": false,
"after": true
}],
"jsx-quotes": ["error", "prefer-double"],
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
"space-before-blocks": "error",
"space-infix-ops": "error",
"no-dupe-class-members": "error",
"no-this-before-super": "error",
"no-useless-concat": "error",
"no-var": "error",
"object-shorthand": "error",
"prefer-template": "error",
"no-constant-condition": ["error", {
"checkLoops": false
}],
"react/forbid-prop-types": ["error", {
"forbid": ["any"]
}],
"react/jsx-boolean-value": "warn",
"react/jsx-closing-bracket-location": "off",
"react/jsx-curly-spacing": "warn",
"react/jsx-indent-props": "off",
"react/jsx-key": "warn",
"react/jsx-max-props-per-line": "off",
"react/jsx-no-bind": "off",
"react/jsx-no-literals": "off",
"react/jsx-pascal-case": "warn",
"react/jsx-sort-prop-types": "off",
"react/jsx-sort-props": "off",
"react/jsx-wrap-multilines": "error",
"react/no-set-state": "off",
"react/prefer-es6-class": "warn",
"react/react-in-jsx-scope": 0,
"react/self-closing-comp": "warn",
"react/sort-comp": [1, {
"order": [
"static-methods",
"lifecycle",
"everything-else",
"rendering"
],
"groups": {
"rendering": [
"/^render.+$/",
"render"
]
}
}],
"react/sort-prop-types": "warn"
}
}