-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
109 lines (109 loc) · 2.11 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
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"parser": "@typescript-eslint/parser",
"extends": [
"airbnb/base",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:eslint-plugin-json/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"prettier"
],
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx",
".ts",
".tsx"
]
}
}
},
"parserOptions": {
"ecmaVersion": 2022,
"project": "./tsconfig.json",
"extraFileExtensions": [
".json"
]
},
"plugins": [
"prettier",
"@typescript-eslint",
"simple-import-sort"
],
"rules": {
"guard-for-in": 0,
"no-restricted-syntax": 0,
"import/no-unresolved": "off",
"prettier/prettier": [
"error"
],
"semi": [
"error",
"always"
],
"object-curly-spacing": [
"error",
"always"
],
"no-multiple-empty-lines": [
"error",
{
"max": 1,
"maxBOF": 0,
"maxEOF": 0
}
],
"camelcase": "off",
"@typescript-eslint/explicit-function-return-type": 0,
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": false
}
],
"@typescript-eslint/no-explicit-any": 1,
"@typescript-eslint/no-inferrable-types": [
"warn",
{
"ignoreParameters": true
}
],
"no-plusplus": [
"error",
{
"allowForLoopAfterthoughts": true
}
],
"consistent-return": "off",
"array-callback-return": "off",
"no-underscore-dangle": "off",
"no-shadow": "off",
"no-new": 0,
"@typescript-eslint/no-shadow": [
"error"
],
"@typescript-eslint/no-unused-vars": "warn",
"quotes": [
2,
"single",
{
"avoidEscape": true
}
],
"class-methods-use-this": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
]
}
}