@foray1010/eslint-config 7.5.0 → 7.6.1
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/CHANGELOG.md +18 -0
- package/package.json +2 -2
- package/presets/base.js +5 -13
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [7.6.1](https://github.com/foray1010/common-presets/compare/@foray1010/eslint-config@7.6.0...@foray1010/eslint-config@7.6.1) (2022-09-30)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **eslint-config:** disable functional/prefer-tacit ([e921649](https://github.com/foray1010/common-presets/commit/e921649d17802d3e866b075b1a5be39200e96991))
|
|
11
|
+
|
|
12
|
+
## [7.6.0](https://github.com/foray1010/common-presets/compare/@foray1010/eslint-config@7.5.0...@foray1010/eslint-config@7.6.0) (2022-09-30)
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
- **eslint-config:** forbid unnecessary callback wrapper ([d560348](https://github.com/foray1010/common-presets/commit/d560348b26180cd81fb01ced982935df70f23d9e))
|
|
17
|
+
- **eslint-config:** re-enable recommended [@typescript-eslint](https://github.com/typescript-eslint) rules ([4b46143](https://github.com/foray1010/common-presets/commit/4b461433b4ff2e3fe7ab909be7c9f6a42d7ccb5f))
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
- **eslint-config:** disable allowAutomaticSingleRunInference ([53b8265](https://github.com/foray1010/common-presets/commit/53b8265bfddf3736b2f13409e53ddbb2be346d32))
|
|
22
|
+
- **eslint-config:** disable allowAutomaticSingleRunInference ([ecb189c](https://github.com/foray1010/common-presets/commit/ecb189ce72c8185d7ad1cd44444463c5dd83b067))
|
|
23
|
+
|
|
6
24
|
## [7.5.0](https://github.com/foray1010/common-presets/compare/@foray1010/eslint-config@7.4.1...@foray1010/eslint-config@7.5.0) (2022-09-28)
|
|
7
25
|
|
|
8
26
|
### Features
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "@foray1010/eslint-config",
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.6.1",
|
|
5
5
|
"homepage": "https://github.com/foray1010/common-presets/tree/master/packages/eslint-config#readme",
|
|
6
6
|
"bugs": "https://github.com/foray1010/common-presets/issues",
|
|
7
7
|
"repository": {
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"publishConfig": {
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "2db2510ae90fd5b609aaad1e8c41934d29e310b7"
|
|
60
60
|
}
|
package/presets/base.js
CHANGED
|
@@ -155,7 +155,8 @@ module.exports = {
|
|
|
155
155
|
parserOptions: {
|
|
156
156
|
// faster linting on cli
|
|
157
157
|
// https://github.com/typescript-eslint/typescript-eslint/issues/3528
|
|
158
|
-
|
|
158
|
+
// turned off because @typescript-eslint/no-unsafe-* rules will output wrong errors
|
|
159
|
+
// allowAutomaticSingleRunInference: true,
|
|
159
160
|
project: ['./tsconfig*.json', './packages/*/tsconfig*.json'],
|
|
160
161
|
sourceType: 'module',
|
|
161
162
|
},
|
|
@@ -204,16 +205,6 @@ module.exports = {
|
|
|
204
205
|
'error',
|
|
205
206
|
{ checksVoidReturn: false },
|
|
206
207
|
],
|
|
207
|
-
// many false alarms
|
|
208
|
-
'@typescript-eslint/no-unsafe-argument': 'off',
|
|
209
|
-
// some third party packages doesn't offer typings
|
|
210
|
-
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
211
|
-
// some third party packages doesn't offer typings
|
|
212
|
-
'@typescript-eslint/no-unsafe-call': 'off',
|
|
213
|
-
// some third party packages doesn't offer typings
|
|
214
|
-
'@typescript-eslint/no-unsafe-member-access': 'off',
|
|
215
|
-
// some third party packages doesn't offer typings
|
|
216
|
-
'@typescript-eslint/no-unsafe-return': 'off',
|
|
217
208
|
// do not block functions referring to other functions
|
|
218
209
|
'@typescript-eslint/no-use-before-define': [
|
|
219
210
|
'error',
|
|
@@ -235,8 +226,6 @@ module.exports = {
|
|
|
235
226
|
// use with functional/prefer-readonly-type
|
|
236
227
|
// mark class variables as readonly if it is not mutated
|
|
237
228
|
'@typescript-eslint/prefer-readonly': 'error',
|
|
238
|
-
// fault alarms in 4.29.3
|
|
239
|
-
'@typescript-eslint/restrict-plus-operands': 'off',
|
|
240
229
|
// allow primitive value in template string
|
|
241
230
|
'@typescript-eslint/restrict-template-expressions': [
|
|
242
231
|
'error',
|
|
@@ -265,6 +254,9 @@ module.exports = {
|
|
|
265
254
|
ignoreClass: 'fieldsOnly',
|
|
266
255
|
},
|
|
267
256
|
],
|
|
257
|
+
// forbid unnecessary callback wrapper
|
|
258
|
+
// disabled due to https://github.com/eslint-functional/eslint-plugin-functional/issues/486
|
|
259
|
+
// 'functional/prefer-tacit': 'error',
|
|
268
260
|
},
|
|
269
261
|
overrides: [
|
|
270
262
|
{
|