-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
60 lines (60 loc) · 1.62 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
60
{
"env": {
"es2021": true,
"node": true,
"jest": true
},
"extends": ["standard", "prettier"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"prettier",
"eslint-plugin-import-helpers",
"import",
"unused-imports"
],
"rules": {
"prettier/prettier": "error",
"space-before-function-paren": "off",
"import-helpers/order-imports": [
"error",
{
"newlinesBetween": "always",
"groups": ["module", "parent", "sibling", "index"],
"alphabetize": { "order": "asc", "ignoreCase": true }
}
],
"comma-dangle": "off",
"semi": "error",
"no-shadow": "off",
"default-param-last": "off",
"import/no-duplicates": [
"error",
{
"considerQueryString": true
}
],
"jsx-quotes": "off",
"no-console": "off",
"quotes": "off",
"unused-imports/no-unused-imports": "error",
"no-unused-vars": "error",
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": "return" },
{ "blankLine": "always", "prev": "*", "next": "if" },
{ "blankLine": "always", "prev": "*", "next": "switch" },
{ "blankLine": "always", "prev": "*", "next": "try" },
{ "blankLine": "always", "prev": "*", "next": "while" },
{ "blankLine": "always", "prev": "*", "next": "for" },
{ "blankLine": "always", "prev": "*", "next": "function" },
{ "blankLine": "always", "prev": "*", "next": "iife" },
{ "blankLine": "always", "prev": "*", "next": "throw" }
]
}
}