forked from kamilio/axiom-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
48 lines (48 loc) · 1.42 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
{
"parser": "babel-eslint",
"extends": ["eslint:recommended", "plugin:react/recommended"],
"plugins": ["react"],
"env": {
"amd": true,
"node": true,
"mocha": true,
"jest": true,
},
"globals": {
"__BASENAME__": true,
"__COMPONENT_PROPS__": true,
"__DEVELOPMENT__": true,
"document": true,
"window": true,
"Promise": true,
},
"rules": {
"comma-dangle": [2, "always-multiline"],
"func-style": [2, "declaration"],
"indent": [2, 2, {"SwitchCase": 0}],
"keyword-spacing": [2],
"jsx-quotes": [2, "prefer-double"],
"max-len": [2, 100],
"no-case-declarations": [0],
"no-trailing-spaces": [2],
"no-var": [2],
"object-curly-spacing": [2, "always"],
"prefer-const": [2],
"quotes": [2, "single"],
"react/no-danger": [0],
"react/prop-types": [2, { "ignore": ["className"] }],
"react/sort-prop-types": [2, {"callbacksLast": true}],
"react/no-unused-prop-types": [2, {"skipShapeProps": true}],
"react/jsx-boolean-value": [2, "always"],
"react/jsx-closing-bracket-location": [2, "after-props"],
"react/jsx-curly-spacing": [2, "always"],
"react/jsx-indent": [2, 2],
"react/jsx-indent-props": [2, 4],
"react/jsx-max-props-per-line": [2, { "maximum": 5 }],
"react/jsx-no-duplicate-props": [2],
"react/jsx-pascal-case": [2],
"react/jsx-sort-props": [2],
"react/jsx-uses-react": [2],
"semi": [2, "always"],
}
}