-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
40 lines (40 loc) · 987 Bytes
/
.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
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"node": true,
"es6": true,
"browser": true,
"jest": true
},
"settings": {
"react": {
"pragma": "React",
"version": "detect"
}
},
"extends": ["airbnb", "plugin:prettier/recommended"],
"plugins": ["prettier", "better-styled-components", "simple-import-sort", "redux-saga"],
"rules": {
"prettier/prettier": ["warn", { "singleQuote": true }],
"simple-import-sort/sort": "warn",
"no-underscore-dangle": ["error", { "allow": ["__GLOBALS__", "__PRELOADED_STATE__"] }],
"react/jsx-no-bind": "off",
"react/jsx-one-expression-per-line": "off",
"react/jsx-wrap-multilines": ["error", { "declaration": false, "assignment": false }]
},
"overrides": [
{
"files": ["*.spec.js", "*.spec.jsx"],
"globals": {
"noop": true
}
}
]
}