-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
47 lines (47 loc) · 1.28 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
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 9,
"ecmaFeatures": {
"jsx": true,
},
"sourceType": "module",
},
"env": {
"browser": true,
"es6": true,
"node": true,
},
"plugins": [
"fp",
"import",
"jsx-a11y",
"react",
],
"extends": [
"airbnb",
"plugin:fp/recommended",
],
"settings": {
"react": {
"version": "detect",
},
},
"rules": {
"array-bracket-newline": ["error", { "multiline": true }],
"array-element-newline": ["error", "consistent"],
"func-style": ["error", "declaration"],
"fp/no-mutation": ["error", { "commonjs": true }],
"fp/no-unused-expression": "off",
"import/no-unresolved": "off",
"indent": ["error", 4],
"max-nested-callbacks": ["error", 2],
"no-underscore-dangle": "error",
"quotes": ["error", "double", { "avoidEscape": false }],
"react/jsx-indent": ["error", 4, { checkAttributes: false, indentLogicalExpressions: true }],
"react/jsx-indent-props": ["error", 4],
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"semi": ["error", "never"],
},
}