@wordpress/eslint-plugin 12.7.0 → 12.8.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.
- package/CHANGELOG.md +6 -0
- package/configs/es5.js +0 -1
- package/configs/jsx-a11y.js +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 12.8.0 (2022-07-27)
|
|
6
|
+
|
|
7
|
+
### Code Quality
|
|
8
|
+
|
|
9
|
+
- Remove deprecated rules `no-negated-in-lhs` replaced with `no-unsafe-negation`, and `jsx-a11y/label-has-for` replaced with `jsx-a11/label-has-associated-control` ([#42654](https://github.com/WordPress/gutenberg/pull/42654)).
|
|
10
|
+
|
|
5
11
|
## 12.6.0 (2022-06-29)
|
|
6
12
|
|
|
7
13
|
- Enable `no-unused-vars`'s setting `ignoreRestSiblings` to allow unused variables when destructuring with rest properties ([#41897](https://github.com/WordPress/gutenberg/pull/41897)).
|
package/configs/es5.js
CHANGED
|
@@ -42,7 +42,6 @@ module.exports = {
|
|
|
42
42
|
'no-mixed-spaces-and-tabs': 'error',
|
|
43
43
|
'no-multiple-empty-lines': [ 'error', { max: 1 } ],
|
|
44
44
|
'no-multi-spaces': 'error',
|
|
45
|
-
'no-negated-in-lhs': 'error',
|
|
46
45
|
'no-nested-ternary': 'error',
|
|
47
46
|
'no-redeclare': 'error',
|
|
48
47
|
'no-shadow': 'error',
|
package/configs/jsx-a11y.js
CHANGED
|
@@ -2,10 +2,10 @@ module.exports = {
|
|
|
2
2
|
extends: [ 'plugin:jsx-a11y/recommended' ],
|
|
3
3
|
plugins: [ 'jsx-a11y' ],
|
|
4
4
|
rules: {
|
|
5
|
-
'jsx-a11y/label-has-
|
|
5
|
+
'jsx-a11y/label-has-associated-control': [
|
|
6
6
|
'error',
|
|
7
7
|
{
|
|
8
|
-
|
|
8
|
+
assert: 'htmlFor',
|
|
9
9
|
},
|
|
10
10
|
],
|
|
11
11
|
'jsx-a11y/media-has-caption': 'off',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/eslint-plugin",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.8.0",
|
|
4
4
|
"description": "ESLint plugin for WordPress development.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@babel/eslint-parser": "^7.16.0",
|
|
35
35
|
"@typescript-eslint/eslint-plugin": "^5.3.0",
|
|
36
36
|
"@typescript-eslint/parser": "^5.3.0",
|
|
37
|
-
"@wordpress/babel-preset-default": "^6.
|
|
37
|
+
"@wordpress/babel-preset-default": "^6.16.0",
|
|
38
38
|
"@wordpress/prettier-config": "^1.4.0",
|
|
39
39
|
"cosmiconfig": "^7.0.0",
|
|
40
40
|
"eslint-config-prettier": "^8.3.0",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "0315dbc240cb2aa146d7c1bafd251f004b88300e"
|
|
69
69
|
}
|