@wistia/eslint-config 2.5.1 → 2.5.2
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
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @wistia/eslint-config
|
|
2
2
|
|
|
3
|
+
## 2.5.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#473](https://github.com/wistia/eslint-config/pull/473) [`3cc15e5`](https://github.com/wistia/eslint-config/commit/3cc15e5b1baa827788023feac6c96dc9e08a5a86) Thanks [@okize](https://github.com/okize)! - fix: turn off `@typescript-eslint/no-unused-vars` as `noUnusedLocals` in tsconfig is preferred
|
|
8
|
+
|
|
3
9
|
## 2.5.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/package.json
CHANGED
package/src/rules/typescript.mjs
CHANGED
|
@@ -313,7 +313,7 @@ export default {
|
|
|
313
313
|
|
|
314
314
|
// Disallow this keywords outside of classes or class-like objects
|
|
315
315
|
// https://typescript-eslint.io/rules/no-invalid-this
|
|
316
|
-
// decision:
|
|
316
|
+
// decision: preference is to set `"noImplicitThis": true` in tsconfig
|
|
317
317
|
'@typescript-eslint/no-invalid-this': 'off',
|
|
318
318
|
|
|
319
319
|
// Disallow void type outside of generic or return types
|
|
@@ -488,18 +488,8 @@ export default {
|
|
|
488
488
|
// Disallow unused variables
|
|
489
489
|
// https://typescript-eslint.io/rules/no-unused-vars
|
|
490
490
|
// decision: emulate the TypeScript style of exempting names starting with _
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
{
|
|
494
|
-
args: 'all',
|
|
495
|
-
argsIgnorePattern: '^_',
|
|
496
|
-
caughtErrors: 'all',
|
|
497
|
-
caughtErrorsIgnorePattern: '^_',
|
|
498
|
-
destructuredArrayIgnorePattern: '^_',
|
|
499
|
-
varsIgnorePattern: '^_',
|
|
500
|
-
ignoreRestSiblings: true,
|
|
501
|
-
},
|
|
502
|
-
],
|
|
491
|
+
// decision: preference is to set `"noUnusedLocals": true` in tsconfig
|
|
492
|
+
'@typescript-eslint/no-unused-vars': 'off',
|
|
503
493
|
|
|
504
494
|
// Disallow the use of variables before they are defined
|
|
505
495
|
// https://typescript-eslint.io/rules/no-use-before-define
|
|
@@ -977,16 +977,7 @@
|
|
|
977
977
|
2,
|
|
978
978
|
],
|
|
979
979
|
"@typescript-eslint/no-unused-vars": [
|
|
980
|
-
|
|
981
|
-
{
|
|
982
|
-
"args": "all",
|
|
983
|
-
"argsIgnorePattern": "^_",
|
|
984
|
-
"caughtErrors": "all",
|
|
985
|
-
"caughtErrorsIgnorePattern": "^_",
|
|
986
|
-
"destructuredArrayIgnorePattern": "^_",
|
|
987
|
-
"ignoreRestSiblings": true,
|
|
988
|
-
"varsIgnorePattern": "^_",
|
|
989
|
-
},
|
|
980
|
+
0,
|
|
990
981
|
],
|
|
991
982
|
"@typescript-eslint/no-use-before-define": [
|
|
992
983
|
2,
|