-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
63 lines (63 loc) · 1.34 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
{
"root": true,
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"env": {
"es6": true,
"browser": true,
"node": true,
"jest": true,
"mocha": true
},
"globals": {
"__DEV__": true,
"__SERVER__": true
},
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"prettier"
],
"plugins": [
"react",
"jsx-a11y"
],
"rules": {
"comma-dangle": [2, "never"],
"eol-last": 2,
"indent": [2, 2, {
"SwitchCase": 1
}],
"no-unused-vars": ["error", {
"varsIgnorePattern": "AsyncProps"
}],
"semi": [2, "never"],
"import/no-unresolved": [2, {
"ignore": ["tapestry.config.js"]
}],
"react/jsx-curly-spacing": [2, "never", {
"allowMultiline": false
}],
"react/jsx-equals-spacing": [2, "never"],
"react/jsx-indent": [2, 2],
"react/jsx-indent-props": [2, 2],
"react/jsx-key": 2,
"react/jsx-no-bind": 2,
"react/jsx-no-target-blank": 2,
"react/jsx-pascal-case": 2,
"react/jsx-wrap-multilines": [1, {
"arrow": false
}],
"react/no-children-prop": 2,
"react/prefer-stateless-function": 2
}
}