-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
156 lines (156 loc) · 3.51 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
{
"parser": "@typescript-eslint/parser",
"root": true,
"plugins": [
"switch-case",
"simple-import-sort",
"deprecation",
"import",
"prettier"
],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:node/recommended",
"plugin:eslint-comments/recommended",
"plugin:optimize-regex/recommended",
"plugin:switch-case/recommended",
"plugin:security/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"prettier"
],
"parserOptions": {
"project": "tsconfig.json",
"ecmaVersion": 2020,
"sourceType": "module"
},
"env": {
"node": true,
"jest": true
},
"settings": {
"node": {
"tryExtensions": [
".js",
".json",
".ts"
]
},
"import/parsers": {
"@typescript-eslint/parser": [
".ts"
]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true
}
}
},
"rules": {
"node/no-unsupported-features/es-syntax": [
"error",
{
"ignores": [
"modules"
]
}
],
"node/no-missing-import": "off",
"node/no-unpublished-import": "off",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"import/first": "error",
"import/no-duplicates": "error",
"deprecation/deprecation": "warn",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"import/no-unresolved": "error",
"prettier/prettier": [
"error",
{
"printWidth": 160,
"endOfLine": "auto",
"parser": "typescript"
}
],
"max-len": [
"error",
160,
2,
{
"ignoreUrls": true,
"ignoreComments": false,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}
],
"no-console": [
"error",
{
"allow": [
"info",
"error"
]
}
],
"import/no-named-as-default": "off",
"import/extensions": "off",
"implicit-arrow-linebreak": "off",
"import/newline-after-import": "off",
"import/prefer-default-export": "off",
"consistent-return": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-function": "off",
"no-empty-function": "off",
"no-unused-vars": "off",
"require-await": "error",
"no-useless-constructor": "off",
"class-methods-use-this": "off",
"object-curly-newline": [
"error",
{
"consistent": true
}
],
"import/no-named-as-default-member": "off"
},
"overrides": [
{
"files": [
"**/*.spec.ts"
],
"extends": [
"plugin:jest/recommended",
"plugin:jest/style",
"plugin:jest-formatting/strict"
],
"rules": {
"jest/expect-expect": [
"warn",
{
"assertFunctionNames": [
"expect",
"request.**.expect",
"**.expect\\w+"
]
}
],
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/unbound-method": "off",
"jest/unbound-method": "error",
"security/detect-possible-timing-attacks": "off"
}
}
],
"ignorePatterns": [
"node_modules/**",
".eslintrc.js",
"dist/**",
"coverage/**",
"report/**"
]
}