-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
92 lines (92 loc) · 2.42 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"root": true,
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:prettier/recommended"
],
"plugins": ["import", "simple-import-sort", "@typescript-eslint"],
"rules": {
"no-constant-condition": "off",
"import/no-unresolved": "off",
"curly": ["error", "all"],
"new-cap": "off",
"no-unused-expressions": "off",
"no-unused-vars": "off",
"semi": ["warn", "always"],
"object-curly-spacing": ["error", "always"],
"arrow-parens": ["error", "always"],
"linebreak-style": 0,
"space-infix-ops": "error",
"eol-last": ["error", "always"],
"padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": "*",
"next": "block"
},
{
"blankLine": "always",
"prev": "block",
"next": "*"
},
{
"blankLine": "always",
"prev": "*",
"next": "block-like"
},
{
"blankLine": "always",
"prev": "block-like",
"next": "*"
}
],
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"@typescript-eslint/naming-convention": [
"warn",
{
"selector": ["parameter", "variable"],
"leadingUnderscore": "forbid",
"format": null
},
{
"selector": "variable",
"format": ["camelCase", "UPPER_CASE", "snake_case", "PascalCase"],
"leadingUnderscore": "allow", // This allows leading underscores generally
"filter": {
"regex": "^(__filename|__dirname)", // This regex matches the variable name `__filename`
"match": false // This means that the rule will not apply to `__filename`
}
},
{
"selector": "parameter",
"leadingUnderscore": "require",
"format": null,
"modifiers": ["unused"]
}
],
"@typescript-eslint/no-explicit-any": "off",
"object-curly-newline": "off",
"@typescript-eslint/ban-ts-comment": "off",
"prettier/prettier": "warn",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error"
},
"env": {
"es6": true,
"node": true,
"jest": true
}
}