@wistia/eslint-config 2.5.0 → 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,17 @@
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
+
9
+ ## 2.5.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#472](https://github.com/wistia/eslint-config/pull/472) [`1afe645`](https://github.com/wistia/eslint-config/commit/1afe6453b02ff4d480f0e1da118085f13a21104f) Thanks [@okize](https://github.com/okize)! - fix: turn off `@typescript-eslint/no-invalid-this` as `noImplicitThis` in tsconfig is preferred
14
+
3
15
  ## 2.5.0
4
16
 
5
17
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wistia/eslint-config",
3
- "version": "2.5.0",
3
+ "version": "2.5.2",
4
4
  "description": "Wistia's ESLint configurations",
5
5
  "packageManager": "yarn@4.13.0",
6
6
  "type": "module",
@@ -32,9 +32,7 @@ export default {
32
32
  // decision: prefer @typescript-eslint/no-implied-eval
33
33
  'no-implied-eval': 'off',
34
34
 
35
- // Disallow this keywords outside of classes or class-like objects
36
- // https://typescript-eslint.io/rules/no-invalid-this
37
- // decision: superceded by noImplicitThis in tsconfig
35
+ // decision: prefer @typescript-eslint/no-invalid-this
38
36
  'no-invalid-this': 'off',
39
37
 
40
38
  // decision: prefer @typescript-eslint/no-loop-func
@@ -315,7 +313,8 @@ export default {
315
313
 
316
314
  // Disallow this keywords outside of classes or class-like objects
317
315
  // https://typescript-eslint.io/rules/no-invalid-this
318
- '@typescript-eslint/no-invalid-this': 'error',
316
+ // decision: preference is to set `"noImplicitThis": true` in tsconfig
317
+ '@typescript-eslint/no-invalid-this': 'off',
319
318
 
320
319
  // Disallow void type outside of generic or return types
321
320
  // https://typescript-eslint.io/rules/no-invalid-void-type
@@ -489,18 +488,8 @@ export default {
489
488
  // Disallow unused variables
490
489
  // https://typescript-eslint.io/rules/no-unused-vars
491
490
  // decision: emulate the TypeScript style of exempting names starting with _
492
- '@typescript-eslint/no-unused-vars': [
493
- 'error',
494
- {
495
- args: 'all',
496
- argsIgnorePattern: '^_',
497
- caughtErrors: 'all',
498
- caughtErrorsIgnorePattern: '^_',
499
- destructuredArrayIgnorePattern: '^_',
500
- varsIgnorePattern: '^_',
501
- ignoreRestSiblings: true,
502
- },
503
- ],
491
+ // decision: preference is to set `"noUnusedLocals": true` in tsconfig
492
+ '@typescript-eslint/no-unused-vars': 'off',
504
493
 
505
494
  // Disallow the use of variables before they are defined
506
495
  // https://typescript-eslint.io/rules/no-use-before-define
@@ -819,7 +819,7 @@
819
819
  2,
820
820
  ],
821
821
  "@typescript-eslint/no-invalid-this": [
822
- 2,
822
+ 0,
823
823
  {
824
824
  "capIsConstructor": true,
825
825
  },
@@ -977,16 +977,7 @@
977
977
  2,
978
978
  ],
979
979
  "@typescript-eslint/no-unused-vars": [
980
- 2,
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,