@enormora/eslint-config-typescript 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -5
- package/typescript.js +9 -6
package/package.json
CHANGED
|
@@ -4,21 +4,21 @@
|
|
|
4
4
|
"Christian Rackerseder <github@echooff.de>"
|
|
5
5
|
],
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@typescript-eslint/eslint-plugin": "
|
|
8
|
-
"@typescript-eslint/parser": "
|
|
9
|
-
"eslint-plugin-functional": "6.
|
|
7
|
+
"@typescript-eslint/eslint-plugin": "8.0.0-alpha.18",
|
|
8
|
+
"@typescript-eslint/parser": "8.0.0-alpha.18",
|
|
9
|
+
"eslint-plugin-functional": "6.6.3"
|
|
10
10
|
},
|
|
11
11
|
"description": "Enormora’s ESLint typescript configuration",
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"main": "typescript.js",
|
|
14
14
|
"name": "@enormora/eslint-config-typescript",
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"@enormora/eslint-config-base": "0.0.
|
|
16
|
+
"@enormora/eslint-config-base": "0.0.13"
|
|
17
17
|
},
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|
|
20
20
|
"url": "git://github.com/enormora/eslint-config.git"
|
|
21
21
|
},
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "0.0.
|
|
23
|
+
"version": "0.0.13"
|
|
24
24
|
}
|
package/typescript.js
CHANGED
|
@@ -33,7 +33,7 @@ export const typescriptConfig = {
|
|
|
33
33
|
jsx: false,
|
|
34
34
|
globalReturn: false
|
|
35
35
|
},
|
|
36
|
-
|
|
36
|
+
projectService: true,
|
|
37
37
|
project: 'tsconfig.json'
|
|
38
38
|
}
|
|
39
39
|
},
|
|
@@ -136,10 +136,11 @@ export const typescriptConfig = {
|
|
|
136
136
|
...configureWrappedCoreRule('no-array-constructor'),
|
|
137
137
|
...configureWrappedCoreRule('no-empty-function'),
|
|
138
138
|
'@typescript-eslint/no-empty-function': 'off',
|
|
139
|
-
'@typescript-eslint/no-empty-
|
|
139
|
+
'@typescript-eslint/no-empty-object-type': [
|
|
140
140
|
'error',
|
|
141
141
|
{
|
|
142
|
-
|
|
142
|
+
allowInterfaces: 'with-single-extends',
|
|
143
|
+
allowObjectTypes: 'never'
|
|
143
144
|
}
|
|
144
145
|
],
|
|
145
146
|
'@typescript-eslint/no-explicit-any': 'error',
|
|
@@ -207,7 +208,7 @@ export const typescriptConfig = {
|
|
|
207
208
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false
|
|
208
209
|
}
|
|
209
210
|
],
|
|
210
|
-
'@typescript-eslint/
|
|
211
|
+
'@typescript-eslint/only-throw-error': 'error',
|
|
211
212
|
'@typescript-eslint/prefer-optional-chain': 'error',
|
|
212
213
|
'@typescript-eslint/prefer-nullish-coalescing': 'error',
|
|
213
214
|
'@typescript-eslint/ban-ts-comment': 'off',
|
|
@@ -263,7 +264,6 @@ export const typescriptConfig = {
|
|
|
263
264
|
'@typescript-eslint/no-confusing-non-null-assertion': ['error'],
|
|
264
265
|
'@typescript-eslint/prefer-enum-initializers': ['off'],
|
|
265
266
|
'@typescript-eslint/prefer-literal-enum-member': ['off'],
|
|
266
|
-
'@typescript-eslint/no-loss-of-precision': ['off'],
|
|
267
267
|
...configureWrappedCoreRule('no-redeclare'),
|
|
268
268
|
...configureWrappedCoreRule('no-shadow'),
|
|
269
269
|
'@typescript-eslint/consistent-type-imports': [
|
|
@@ -322,6 +322,7 @@ export const typescriptConfig = {
|
|
|
322
322
|
'@typescript-eslint/no-array-delete': 'error',
|
|
323
323
|
'@typescript-eslint/no-useless-template-literals': 'error',
|
|
324
324
|
...configureWrappedCoreRule('prefer-promise-reject-errors'),
|
|
325
|
+
'@typescript-eslint/prefer-find': 'error',
|
|
325
326
|
|
|
326
327
|
'functional/functional-parameters': 'off',
|
|
327
328
|
'functional/immutable-data': 'off',
|
|
@@ -395,6 +396,8 @@ export const typescriptConfig = {
|
|
|
395
396
|
],
|
|
396
397
|
ignoreInterfaces: false
|
|
397
398
|
}
|
|
398
|
-
]
|
|
399
|
+
],
|
|
400
|
+
...configureWrappedCoreRule('consistent-return'),
|
|
401
|
+
'@typescript-eslint/use-unknown-in-catch-callback-variable': 'error'
|
|
399
402
|
}
|
|
400
403
|
};
|