@wordpress/eslint-plugin 24.5.0 → 24.6.1-next.v.202604091042.0

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.
@@ -2,6 +2,9 @@ module.exports = {
2
2
  extends: [ 'plugin:jsx-a11y/recommended' ],
3
3
  plugins: [ 'jsx-a11y' ],
4
4
  rules: {
5
+ // False positives with `render` props (e.g. `<Text render={ <h1 /> }>…</Text>`).
6
+ // See https://github.com/WordPress/gutenberg/issues/76501
7
+ 'jsx-a11y/heading-has-content': 'off',
5
8
  'jsx-a11y/label-has-associated-control': [
6
9
  'error',
7
10
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/eslint-plugin",
3
- "version": "24.5.0",
3
+ "version": "24.6.1-next.v.202604091042.0+668146787",
4
4
  "description": "ESLint plugin for WordPress development.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -40,9 +40,9 @@
40
40
  "@babel/eslint-parser": "7.25.7",
41
41
  "@typescript-eslint/eslint-plugin": "^6.4.1",
42
42
  "@typescript-eslint/parser": "^6.4.1",
43
- "@wordpress/babel-preset-default": "^8.43.0",
44
- "@wordpress/prettier-config": "^4.43.0",
45
- "@wordpress/theme": "^0.10.0",
43
+ "@wordpress/babel-preset-default": "^8.43.1-next.v.202604091042.0+668146787",
44
+ "@wordpress/prettier-config": "^4.43.1-next.v.202604091042.0+668146787",
45
+ "@wordpress/theme": "^0.10.1-next.v.202604091042.0+668146787",
46
46
  "cosmiconfig": "^7.0.0",
47
47
  "eslint-config-prettier": "^8.3.0",
48
48
  "eslint-import-resolver-typescript": "^4.4.4",
@@ -78,5 +78,5 @@
78
78
  "publishConfig": {
79
79
  "access": "public"
80
80
  },
81
- "gitHead": "2cea90674d11aa521ec3f71652fb3a6a4c383969"
81
+ "gitHead": "73606df74f1c38a084bfa5db97205259ef817593"
82
82
  }
@@ -8,7 +8,7 @@
8
8
  */
9
9
  const ALLOWLIST = {
10
10
  '@wordpress/ui': {
11
- allowed: [ 'Badge', 'Stack' ],
11
+ allowed: [ 'Badge', 'Stack', 'Text' ],
12
12
  message:
13
13
  '`{{ name }}` from `{{ source }}` is not yet recommended for use in a WordPress environment.',
14
14
  },
@@ -9,7 +9,7 @@ const isPackageInstalled = ( packageName ) => {
9
9
  if ( require.resolve( packageName ) ) {
10
10
  return true;
11
11
  }
12
- } catch ( error ) {}
12
+ } catch {}
13
13
  return false;
14
14
  };
15
15