-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
60 lines (59 loc) · 2.07 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
{
"extends": ["airbnb", "prettier", "eslint:recommended"],
"settings": {
"import/resolver": {
"node": {
"paths": ["src"]
},
"exports": {}
}
},
"parser": "@babel/eslint-parser",
"env": {
"browser": true,
"node": true,
"mocha": true
},
"plugins": ["prettier", "simple-import-sort", "jsdoc"],
"rules": {
"prettier/prettier": "error",
"comma-dangle": ["error", "always-multiline"],
"array-element-newline": ["error", "consistent"],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"one-var": ["error", { "uninitialized": "always", "initialized": "never" }],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"prefer-template": "off",
"camelcase": "off",
"max-len": "off",
"no-console": "off",
"no-unused-expressions": "warn",
"no-confusing-arrow": "off",
"no-underscore-dangle": "off",
"no-return-assign": "off",
"consistent-return": "off",
"arrow-body-style": "off",
"import/prefer-default-export": "off",
"import/no-named-as-default-member": "warn",
"no-param-reassign": ["warn", { "props": false }],
"max-classes-per-file": "warn",
"simple-import-sort/imports": [
"warn",
{
"groups": [
// Side effect imports.
["^\\u0000"],
// Packages.
// Things that start with a letter (or digit or underscore), or `@` followed by a letter.
["^@?\\w"],
// Absolute imports
[
"^(components|configs|constants|containers|domain|enhancers|hocs|libs|pages|reducers|services|store|modules|dictionaries)(/.*|$)"
],
// Relative imports.
// Anything that starts with a dot.
["^\\."]
]
}
]
}
}