-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
33 lines (31 loc) · 1.09 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
{
"env": {
"node": true,
"es2021": true
},
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"prettier/prettier": [
"error",
{ "tabWidth": 2, "singleQuote": true, "semi": true, "printWidth": 120 }
],
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": "return" },
{ "blankLine": "always", "prev": "*", "next": "export" },
{ "blankLine": "always", "prev": "*", "next": "try" },
{ "blankLine": "always", "prev": "*", "next": "if" },
{ "blankLine": "always", "prev": "*", "next": "function" },
{ "blankLine": "always", "prev": "export", "next": "*" },
{ "blankLine": "always", "prev": "import", "next": "*" },
{ "blankLine": "never", "prev": "import", "next": "import" },
{ "blankLine": "always", "prev": "*", "next": "const" },
{ "blankLine": "always", "prev": "const", "next": "*" },
{ "blankLine": "never", "prev": "const", "next": "const" }
]
}
}