@wordpress/eslint-plugin 10.0.1 → 10.0.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
@@ -2,6 +2,8 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ – Replaced no-shadow eslint rule with @typescript-eslint/no-shadow ([#38665](https://github.com/WordPress/gutenberg/pull/38665)).
6
+
5
7
  ## 10.0.0 (2022-01-27)
6
8
 
7
9
  ### Breaking Changes
@@ -50,6 +50,9 @@ if ( isPackageInstalled( 'typescript' ) ) {
50
50
  'jsdoc/require-returns-type': 'off',
51
51
  // handled by TS itself
52
52
  'no-unused-vars': 'off',
53
+ // no-shadow doesn't work correctly in TS, so let's use a TS-dedicated version instead.
54
+ 'no-shadow': 'off',
55
+ '@typescript-eslint/no-shadow': 'error',
53
56
  },
54
57
  },
55
58
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/eslint-plugin",
3
- "version": "10.0.1",
3
+ "version": "10.0.2",
4
4
  "description": "ESLint plugin for WordPress development.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -62,5 +62,5 @@
62
62
  "publishConfig": {
63
63
  "access": "public"
64
64
  },
65
- "gitHead": "2e4922861e49f5a090f9dc52056165092cfba163"
65
+ "gitHead": "4566ac290359553d04de4eb574545309343f790b"
66
66
  }