@wordpress/eslint-plugin 22.22.0 → 23.0.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/README.md +1 -1
- package/configs/recommended-with-formatting.js +1 -10
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -72,7 +72,7 @@ The granular rulesets will not define any environment globals. As such, if they
|
|
|
72
72
|
| Rule | Description | Recommended |
|
|
73
73
|
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------- |
|
|
74
74
|
| [data-no-store-string-literals](https://github.com/WordPress/gutenberg/tree/HEAD/packages/eslint-plugin/docs/rules/data-no-store-string-literals.md) | Discourage passing string literals to reference data stores. | |
|
|
75
|
-
| [dependency-group](https://github.com/WordPress/gutenberg/tree/HEAD/packages/eslint-plugin/docs/rules/dependency-group.md) | Enforce dependencies docblocks formatting. |
|
|
75
|
+
| [dependency-group](https://github.com/WordPress/gutenberg/tree/HEAD/packages/eslint-plugin/docs/rules/dependency-group.md) | Enforce dependencies docblocks formatting. | |
|
|
76
76
|
| [i18n-ellipsis](https://github.com/WordPress/gutenberg/tree/HEAD/packages/eslint-plugin/docs/rules/i18n-ellipsis.md) | Disallow using three dots in translatable strings. | ✓ |
|
|
77
77
|
| [i18n-hyphenated-range](https://github.com/WordPress/gutenberg/tree/HEAD/packages/eslint-plugin/docs/rules/i18n-hyphenated-range.md) | Disallow hyphenated numerical ranges in translatable strings. | |
|
|
78
78
|
| [i18n-no-collapsible-whitespace](https://github.com/WordPress/gutenberg/tree/HEAD/packages/eslint-plugin/docs/rules/i18n-no-collapsible-whitespace.md) | Disallow collapsible whitespace in translatable strings. | ✓ |
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
// Exclude bundled WordPress packages from the list.
|
|
2
|
-
const wpPackagesRegExp = '^@wordpress/(?!(icons|interface|style-engine))';
|
|
3
|
-
|
|
4
1
|
const config = {
|
|
5
2
|
extends: [
|
|
6
3
|
require.resolve( './jsx-a11y.js' ),
|
|
@@ -20,7 +17,6 @@ const config = {
|
|
|
20
17
|
wp: 'readonly',
|
|
21
18
|
},
|
|
22
19
|
settings: {
|
|
23
|
-
'import/internal-regex': wpPackagesRegExp,
|
|
24
20
|
'import/extensions': [ '.js', '.jsx' ],
|
|
25
21
|
'import/resolver': {
|
|
26
22
|
typescript: true,
|
|
@@ -33,12 +29,7 @@ const config = {
|
|
|
33
29
|
peerDependencies: true,
|
|
34
30
|
},
|
|
35
31
|
],
|
|
36
|
-
'import/no-unresolved':
|
|
37
|
-
'error',
|
|
38
|
-
{
|
|
39
|
-
ignore: [ wpPackagesRegExp ],
|
|
40
|
-
},
|
|
41
|
-
],
|
|
32
|
+
'import/no-unresolved': 'error',
|
|
42
33
|
'import/default': 'warn',
|
|
43
34
|
'import/named': 'warn',
|
|
44
35
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/eslint-plugin",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "23.0.0",
|
|
4
4
|
"description": "ESLint plugin for WordPress development.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -40,8 +40,8 @@
|
|
|
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.
|
|
44
|
-
"@wordpress/prettier-config": "^4.
|
|
43
|
+
"@wordpress/babel-preset-default": "^8.37.0",
|
|
44
|
+
"@wordpress/prettier-config": "^4.37.0",
|
|
45
45
|
"cosmiconfig": "^7.0.0",
|
|
46
46
|
"eslint-config-prettier": "^8.3.0",
|
|
47
47
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "2cf13ec6cf86153c9b3cf369bf5c59046f5cd950"
|
|
77
77
|
}
|