-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.json
41 lines (41 loc) · 1.02 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
{
"parser": "babel-eslint",
"root": true,
"env": {
"node": true,
"browser": true,
"es6": true,
"jest": true
},
"extends": [
"eslint:recommended",
"airbnb"
],
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
}
},
"rules": {
"indent": ["error", 2],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}],
"no-debugger": "warn",
"no-use-before-define": "off",
"no-confusing-arrow": ["error", { "allowParens": true }],
"react/jsx-closing-bracket-location": [ "error", "after-props" ],
"react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"] }],
"react/prop-types": "warn",
"import/no-extraneous-dependencies": [
"error", { "dependencies": true, "peerDependencies": true }
]
}
}