@wordpress/eslint-plugin 25.6.1-next.v.202607070741.0 → 25.7.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.6.1-next.v.202607070741.0+a51d59513",
3
+ "version": "25.7.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.50.1-next.v.202607070741.0+a51d59513",
48
- "@wordpress/prettier-config": "^4.50.1-next.v.202607070741.0+a51d59513",
49
- "@wordpress/theme": "^0.17.2-next.v.202607070741.0+a51d59513",
47
+ "@wordpress/babel-preset-default": "^8.51.0",
48
+ "@wordpress/prettier-config": "^4.51.0",
49
+ "@wordpress/theme": "^1.0.0",
50
50
  "cosmiconfig": "^7.0.0",
51
51
  "eslint-config-prettier": "^10.0.0",
52
52
  "eslint-import-resolver-typescript": "^4.4.4",
@@ -66,7 +66,8 @@
66
66
  "@types/eslint": "^9",
67
67
  "@types/estree": "^1.0.8",
68
68
  "@typescript-eslint/parser": "^8.57.1",
69
- "eslint": "^10.0.0"
69
+ "eslint": "^10.0.0",
70
+ "typescript": "npm:@typescript/typescript6@^6.0.2"
70
71
  },
71
72
  "peerDependencies": {
72
73
  "@babel/core": ">=7",
@@ -85,5 +86,5 @@
85
86
  "publishConfig": {
86
87
  "access": "public"
87
88
  },
88
- "gitHead": "f637726e370c8b23695ed9af82adbe171ad235d8"
89
+ "gitHead": "e9a74f9c14095a34398ecd4d1f7a908e55051205"
89
90
  }
@@ -22,13 +22,6 @@ ruleTester.run( 'components-no-missing-40px-size-prop', rule, {
22
22
  <Button __next40pxDefaultSize />
23
23
  `,
24
24
  },
25
- // Component with __next40pxDefaultSize={true}
26
- {
27
- code: `
28
- import { InputControl } from '@wordpress/components';
29
- <InputControl __next40pxDefaultSize={true} />
30
- `,
31
- },
32
25
  // Component with non-default size prop
33
26
  {
34
27
  code: `
@@ -111,8 +104,8 @@ ruleTester.run( 'components-no-missing-40px-size-prop', rule, {
111
104
  } from '@wordpress/components';
112
105
  <>
113
106
  <FormTokenField />
114
- <InputControl __next40pxDefaultSize />
115
- <NumberControl __next40pxDefaultSize />
107
+ <InputControl />
108
+ <NumberControl />
116
109
  <RangeControl />
117
110
  <SelectControl />
118
111
  <ToggleGroupControl />
@@ -134,19 +127,6 @@ ruleTester.run( 'components-no-missing-40px-size-prop', rule, {
134
127
  },
135
128
  ],
136
129
  },
137
- // InputControl without __next40pxDefaultSize
138
- {
139
- code: `
140
- import { InputControl } from '@wordpress/components';
141
- <InputControl value={value} onChange={onChange} />
142
- `,
143
- errors: [
144
- {
145
- messageId: 'missingProp',
146
- data: { component: 'InputControl' },
147
- },
148
- ],
149
- },
150
130
  // Component with __next40pxDefaultSize={false}
151
131
  {
152
132
  code: `
@@ -173,35 +153,6 @@ ruleTester.run( 'components-no-missing-40px-size-prop', rule, {
173
153
  },
174
154
  ],
175
155
  },
176
- // Aliased import without __next40pxDefaultSize
177
- {
178
- code: `
179
- import { InputControl as MyInputControl } from '@wordpress/components';
180
- <MyInputControl />
181
- `,
182
- errors: [
183
- {
184
- messageId: 'missingProp',
185
- data: { component: 'InputControl' },
186
- },
187
- ],
188
- },
189
- // Multiple components, some invalid
190
- {
191
- code: `
192
- import { Button, InputControl } from '@wordpress/components';
193
- <>
194
- <Button __next40pxDefaultSize />
195
- <InputControl />
196
- </>
197
- `,
198
- errors: [
199
- {
200
- messageId: 'missingProp',
201
- data: { component: 'InputControl' },
202
- },
203
- ],
204
- },
205
156
  // Multiple invalid components
206
157
  {
207
158
  code: `
@@ -232,20 +183,6 @@ ruleTester.run( 'components-no-missing-40px-size-prop', rule, {
232
183
  },
233
184
  ],
234
185
  },
235
- // Default import from input-control path with checkLocalImports enabled
236
- {
237
- code: `
238
- import InputControl from '../input-control';
239
- <InputControl />
240
- `,
241
- options: [ { checkLocalImports: true } ],
242
- errors: [
243
- {
244
- messageId: 'missingProp',
245
- data: { component: 'InputControl' },
246
- },
247
- ],
248
- },
249
186
  ],
250
187
  } );
251
188
 
@@ -267,7 +204,7 @@ ruleTester.run(
267
204
  {
268
205
  code: `
269
206
  import InputControl from './input-control';
270
- <InputControl __next40pxDefaultSize />
207
+ <InputControl />
271
208
  `,
272
209
  options: [ { checkLocalImports: true } ],
273
210
  },
@@ -15,8 +15,6 @@ const COMPONENTS_REQUIRING_40PX = new Set( [
15
15
  'Button',
16
16
  'ClipboardButton',
17
17
  'IconButton',
18
- 'InputControl',
19
- 'NumberControl',
20
18
  ] );
21
19
 
22
20
  module.exports = {