-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
45 lines (45 loc) · 1.19 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
{
"env": {
"es2021": true,
"node": true,
"jest": true
},
"parser": "@typescript-eslint/parser",
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
"parserOptions": { "ecmaVersion": 12, "sourceType": "module" },
"plugins": ["@typescript-eslint", "prettier"],
"rules": {
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 0, "maxBOF": 0 }],
"no-console": ["warn", { "allow": ["warn", "error"] }],
"semi": ["error", "never"],
"quotes": [2, "single"],
"eol-last": ["error", "always"],
"max-len": [
"error",
{
"code": 120
}
],
"no-trailing-spaces": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
"varsIgnorePattern": "^_",
"argsIgnorePattern": "^_"
}
],
"object-curly-spacing": ["error", "always"],
"@typescript-eslint/no-explicit-any": "error",
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}
]
},
"ignorePatterns": ["src/types/**/*.*"]
}