@wordpress/eslint-plugin 25.4.2-next.v.202606191442.0 → 25.5.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/eslint-plugin",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.5.0",
|
|
4
4
|
"description": "ESLint plugin for WordPress development.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"@babel/eslint-parser": "^7.28.6",
|
|
45
45
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.0",
|
|
46
46
|
"@eslint/compat": "^2.0.0",
|
|
47
|
-
"@wordpress/babel-preset-default": "^8.
|
|
48
|
-
"@wordpress/prettier-config": "^4.
|
|
49
|
-
"@wordpress/theme": "^0.16.
|
|
47
|
+
"@wordpress/babel-preset-default": "^8.49.0",
|
|
48
|
+
"@wordpress/prettier-config": "^4.49.0",
|
|
49
|
+
"@wordpress/theme": "^0.16.0",
|
|
50
50
|
"cosmiconfig": "^7.0.0",
|
|
51
51
|
"eslint-config-prettier": "^10.0.0",
|
|
52
52
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"publishConfig": {
|
|
85
85
|
"access": "public"
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "0e7112a4f4fde4ea15bd9060489b8f6fe11eb6ca"
|
|
88
88
|
}
|
|
@@ -112,7 +112,6 @@ ruleTester.run( 'components-no-missing-40px-size-prop', rule, {
|
|
|
112
112
|
import {
|
|
113
113
|
BorderBoxControl,
|
|
114
114
|
BorderControl,
|
|
115
|
-
BoxControl,
|
|
116
115
|
ComboboxControl,
|
|
117
116
|
CustomSelectControl,
|
|
118
117
|
FontAppearanceControl,
|
|
@@ -125,14 +124,12 @@ ruleTester.run( 'components-no-missing-40px-size-prop', rule, {
|
|
|
125
124
|
NumberControl,
|
|
126
125
|
RangeControl,
|
|
127
126
|
SelectControl,
|
|
128
|
-
TextControl,
|
|
129
127
|
ToggleGroupControl,
|
|
130
128
|
UnitControl,
|
|
131
129
|
} from '@wordpress/components';
|
|
132
130
|
<>
|
|
133
131
|
<BorderBoxControl __next40pxDefaultSize />
|
|
134
132
|
<BorderControl __next40pxDefaultSize />
|
|
135
|
-
<BoxControl __next40pxDefaultSize />
|
|
136
133
|
<ComboboxControl __next40pxDefaultSize />
|
|
137
134
|
<CustomSelectControl __next40pxDefaultSize />
|
|
138
135
|
<FontAppearanceControl __next40pxDefaultSize />
|
|
@@ -145,7 +142,6 @@ ruleTester.run( 'components-no-missing-40px-size-prop', rule, {
|
|
|
145
142
|
<NumberControl __next40pxDefaultSize />
|
|
146
143
|
<RangeControl __next40pxDefaultSize />
|
|
147
144
|
<SelectControl __next40pxDefaultSize />
|
|
148
|
-
<TextControl __next40pxDefaultSize />
|
|
149
145
|
<ToggleGroupControl __next40pxDefaultSize />
|
|
150
146
|
<UnitControl __next40pxDefaultSize />
|
|
151
147
|
</>
|
|
@@ -208,13 +204,13 @@ ruleTester.run( 'components-no-missing-40px-size-prop', rule, {
|
|
|
208
204
|
// Aliased import without __next40pxDefaultSize
|
|
209
205
|
{
|
|
210
206
|
code: `
|
|
211
|
-
import {
|
|
212
|
-
<
|
|
207
|
+
import { InputControl as MyInputControl } from '@wordpress/components';
|
|
208
|
+
<MyInputControl />
|
|
213
209
|
`,
|
|
214
210
|
errors: [
|
|
215
211
|
{
|
|
216
212
|
messageId: 'missingProp',
|
|
217
|
-
data: { component: '
|
|
213
|
+
data: { component: 'InputControl' },
|
|
218
214
|
},
|
|
219
215
|
],
|
|
220
216
|
},
|
|
@@ -14,7 +14,6 @@ const { hasTruthyJsxAttribute } = require( '../utils' );
|
|
|
14
14
|
const COMPONENTS_REQUIRING_40PX = new Set( [
|
|
15
15
|
'BorderBoxControl',
|
|
16
16
|
'BorderControl',
|
|
17
|
-
'BoxControl',
|
|
18
17
|
'Button',
|
|
19
18
|
'ClipboardButton',
|
|
20
19
|
'ComboboxControl',
|
|
@@ -31,7 +30,6 @@ const COMPONENTS_REQUIRING_40PX = new Set( [
|
|
|
31
30
|
'Radio',
|
|
32
31
|
'RangeControl',
|
|
33
32
|
'SelectControl',
|
|
34
|
-
'TextControl',
|
|
35
33
|
'TreeSelect',
|
|
36
34
|
'ToggleGroupControl',
|
|
37
35
|
'UnitControl',
|