-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
53 lines (53 loc) · 1.32 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
49
50
51
52
53
{
"env": {
"browser": true,
"node": true,
"commonjs": true,
"mocha": true,
"es6": true
},
"extends": ["airbnb"],
"plugins": ["fp"],
"globals": {
"document": true,
"window": true
},
"ignorePatterns": [
"*.test.js",
"*.test.jsx",
"jest.config.js",
"build/**/*",
"dist/**/*"
],
"rules": {
"no-console": 1,
"no-extra-boolean-cast": 0,
"max-params": ["error", 3],
"arrow-parens": "error",
"consistent-return": "off",
"indent": ["error", 2, {"SwitchCase": 1 }],
"func-names": ["error", "as-needed"],
"curly": ["error", "all"],
"max-len": "off",
"semi": ["error", "always"],
"object-curly-newline": ["error", {
"ObjectExpression": { "consistent": true },
"ObjectPattern": "never"
}],
"no-plusplus": "off",
"require-await": "error",
"import/no-extraneous-dependencies": "off",
"import/no-named-as-default": "off",
"import/no-cycle": "off",
"import/group-exports": "error",
"import/exports-last": "error",
"import/prefer-default-export": "off",
"import/order": ["error", {
"newlines-between": "always",
"groups": [["builtin" ,"external"], ["internal", "parent", "sibling", "index"]]
}],
"fp/no-class": "error",
"fp/no-delete": "error",
"fp/no-get-set": "error"
}
}