@wordpress/eslint-plugin 25.4.0 → 25.4.1
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/README.md +5 -0
- package/configs/custom.js +0 -8
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -125,6 +125,11 @@ The granular rulesets will not define any environment globals. As such, if they
|
|
|
125
125
|
| [no-dom-globals-in-module-scope](https://github.com/WordPress/gutenberg/tree/HEAD/packages/eslint-plugin/docs/rules/no-dom-globals-in-module-scope.md) | Disallow use of DOM globals in module scope. | |
|
|
126
126
|
| [no-dom-globals-in-react-cc-render](https://github.com/WordPress/gutenberg/tree/HEAD/packages/eslint-plugin/docs/rules/no-dom-globals-in-react-cc-render.md) | Disallow use of DOM globals in React class component render methods. | |
|
|
127
127
|
| [no-dom-globals-in-react-fc](https://github.com/WordPress/gutenberg/tree/HEAD/packages/eslint-plugin/docs/rules/no-dom-globals-in-react-fc.md) | Disallow use of DOM globals in the render cycle of a React function component. | |
|
|
128
|
+
| [no-ds-tokens](https://github.com/WordPress/gutenberg/tree/HEAD/packages/eslint-plugin/docs/rules/no-ds-tokens.md) | Disallow any usage of `--wpds-*` CSS custom properties. | |
|
|
129
|
+
| `no-global-active-element` | Disallow accessing the active element via `document.activeElement`. | ✓ |
|
|
130
|
+
| `no-global-get-selection` | Disallow accessing the selection via `window.getSelection`. | ✓ |
|
|
131
|
+
| [no-setting-ds-tokens](https://github.com/WordPress/gutenberg/tree/HEAD/packages/eslint-plugin/docs/rules/no-setting-ds-tokens.md) | Disallow setting any CSS custom property beginning with `--wpds-`. | ✓ |
|
|
132
|
+
| [no-unknown-ds-tokens](https://github.com/WordPress/gutenberg/tree/HEAD/packages/eslint-plugin/docs/rules/no-unknown-ds-tokens.md) | Prevent use of non-existing `--wpds-*` variables. | ✓ |
|
|
128
133
|
| [components-no-missing-40px-size-prop](https://github.com/WordPress/gutenberg/tree/HEAD/packages/eslint-plugin/docs/rules/components-no-missing-40px-size-prop.md) | Disallow missing `__next40pxDefaultSize` prop on `@wordpress/components` components. | ✓ |
|
|
129
134
|
| [components-no-unsafe-button-disabled](https://github.com/WordPress/gutenberg/tree/HEAD/packages/eslint-plugin/docs/rules/components-no-unsafe-button-disabled.md) | Disallow using `disabled` on Button without `accessibleWhenDisabled`. | ✓ |
|
|
130
135
|
| [no-unsafe-render-order](https://github.com/WordPress/gutenberg/tree/HEAD/packages/eslint-plugin/docs/rules/no-unsafe-render-order.md) | Prevent unsafe `render` composition orders that silently remove semantics. | ✓ |
|
package/configs/custom.js
CHANGED
|
@@ -23,14 +23,6 @@ module.exports = [
|
|
|
23
23
|
'@wordpress/no-wp-process-env': 'error',
|
|
24
24
|
},
|
|
25
25
|
},
|
|
26
|
-
{
|
|
27
|
-
files: [ '**/*.native.js' ],
|
|
28
|
-
rules: {
|
|
29
|
-
'@wordpress/no-base-control-with-label-without-id': 'off',
|
|
30
|
-
'@wordpress/i18n-no-flanking-whitespace': 'error',
|
|
31
|
-
'@wordpress/i18n-hyphenated-range': 'error',
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
26
|
{
|
|
35
27
|
files: [ '**/*.test.js', '**/test/*.js' ],
|
|
36
28
|
rules: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/eslint-plugin",
|
|
3
|
-
"version": "25.4.
|
|
3
|
+
"version": "25.4.1",
|
|
4
4
|
"description": "ESLint plugin for WordPress development.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -42,29 +42,29 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@babel/eslint-parser": "^7.28.6",
|
|
45
|
-
"@eslint-community/eslint-plugin-eslint-comments": "^4.
|
|
45
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.0",
|
|
46
46
|
"@eslint/compat": "^2.0.0",
|
|
47
|
-
"@wordpress/babel-preset-default": "^8.48.
|
|
48
|
-
"@wordpress/prettier-config": "^4.48.
|
|
49
|
-
"@wordpress/theme": "^0.15.
|
|
47
|
+
"@wordpress/babel-preset-default": "^8.48.1",
|
|
48
|
+
"@wordpress/prettier-config": "^4.48.1",
|
|
49
|
+
"@wordpress/theme": "^0.15.1",
|
|
50
50
|
"cosmiconfig": "^7.0.0",
|
|
51
51
|
"eslint-config-prettier": "^10.0.0",
|
|
52
52
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
53
53
|
"eslint-plugin-import": "^2.31.0",
|
|
54
|
-
"eslint-plugin-jest": "^28.
|
|
54
|
+
"eslint-plugin-jest": "^28.11.0",
|
|
55
55
|
"eslint-plugin-jsdoc": "^50.0.0",
|
|
56
56
|
"eslint-plugin-jsx-a11y": "^6.10.0",
|
|
57
57
|
"eslint-plugin-playwright": "^2.1.0",
|
|
58
|
-
"eslint-plugin-prettier": "^5.
|
|
58
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
59
59
|
"eslint-plugin-react": "^7.37.0",
|
|
60
|
-
"eslint-plugin-react-hooks": "7.1.1",
|
|
60
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
61
61
|
"globals": "^16.0.0",
|
|
62
62
|
"requireindex": "^1.2.0",
|
|
63
|
-
"typescript-eslint": "^8.
|
|
63
|
+
"typescript-eslint": "^8.57.1"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@types/eslint": "^9",
|
|
67
|
-
"@types/estree": "1.0.5"
|
|
67
|
+
"@types/estree": "^1.0.5"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"@babel/core": ">=7",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"publishConfig": {
|
|
84
84
|
"access": "public"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "99df7432c5c7cb83ba41146fd1f57f3c19004305"
|
|
87
87
|
}
|