@eslint-react/eslint-plugin 1.17.0-next.2 → 1.17.0-next.4

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/dist/index.d.mts CHANGED
@@ -381,9 +381,10 @@ declare namespace coreConfig {
381
381
 
382
382
  declare const name$9 = "@eslint-react/debug";
383
383
  declare const rules$9: {
384
- readonly "@eslint-react/debug/no-unknown-attribute": "warn";
385
- readonly "@eslint-react/debug/no-unknown-event": "warn";
386
- readonly "@eslint-react/debug/no-unknown-property": "warn";
384
+ readonly "@eslint-react/debug/class-component": "warn";
385
+ readonly "@eslint-react/debug/function-component": "warn";
386
+ readonly "@eslint-react/debug/hook": "warn";
387
+ readonly "@eslint-react/debug/is-from-react": "warn";
387
388
  };
388
389
  declare const plugins$4: {
389
390
  "@eslint-react/debug": {
@@ -407,9 +408,10 @@ declare namespace debugConfig {
407
408
 
408
409
  declare const name$8 = "@eslint-react/disable-debug";
409
410
  declare const rules$8: {
410
- "@eslint-react/debug/no-unknown-attribute"?: "off";
411
- "@eslint-react/debug/no-unknown-event"?: "off";
412
- "@eslint-react/debug/no-unknown-property"?: "off";
411
+ "@eslint-react/debug/class-component"?: "off";
412
+ "@eslint-react/debug/function-component"?: "off";
413
+ "@eslint-react/debug/hook"?: "off";
414
+ "@eslint-react/debug/is-from-react"?: "off";
413
415
  };
414
416
 
415
417
  declare namespace disableDebugConfig {
@@ -1344,59 +1346,46 @@ declare const _default: {
1344
1346
  readonly recommended: typeof recommendedConfig;
1345
1347
  readonly "recommended-type-checked": typeof recommendedTypeCheckedConfig;
1346
1348
  readonly "recommended-typescript": typeof recommendedTypeScriptConfig;
1347
- readonly "all-legacy": typeof allConfig & {
1348
- name: string;
1349
+ readonly "all-legacy": Omit<typeof allConfig, "name"> & {
1349
1350
  plugins: string[];
1350
1351
  };
1351
- readonly "core-legacy": typeof coreConfig & {
1352
- name: string;
1352
+ readonly "core-legacy": Omit<typeof coreConfig, "name"> & {
1353
1353
  plugins: string[];
1354
1354
  };
1355
- readonly "debug-legacy": typeof debugConfig & {
1356
- name: string;
1355
+ readonly "debug-legacy": Omit<typeof debugConfig, "name"> & {
1357
1356
  plugins: string[];
1358
1357
  };
1359
- readonly "disable-debug-legacy": typeof disableDebugConfig & {
1360
- name: string;
1358
+ readonly "disable-debug-legacy": Omit<typeof disableDebugConfig, "name"> & {
1361
1359
  plugins: string[];
1362
1360
  };
1363
- readonly "disable-dom-legacy": typeof disableDomConfig & {
1364
- name: string;
1361
+ readonly "disable-dom-legacy": Omit<typeof disableDomConfig, "name"> & {
1365
1362
  plugins: string[];
1366
1363
  };
1367
- readonly "disable-type-checked-legacy": typeof disableTypeCheckedConfig & {
1368
- name: string;
1364
+ readonly "disable-type-checked-legacy": Omit<typeof disableTypeCheckedConfig, "name"> & {
1369
1365
  plugins: string[];
1370
1366
  };
1371
- readonly "disable-web-api-legacy": typeof disableWebApiConfig & {
1372
- name: string;
1367
+ readonly "disable-web-api-legacy": Omit<typeof disableWebApiConfig, "name"> & {
1373
1368
  plugins: string[];
1374
1369
  };
1375
- readonly "dom-legacy": typeof domConfig & {
1376
- name: string;
1370
+ readonly "dom-legacy": Omit<typeof domConfig, "name"> & {
1377
1371
  plugins: string[];
1378
1372
  };
1379
- readonly "off-legacy": typeof offConfig & {
1380
- name: string;
1373
+ readonly "off-legacy": Omit<typeof offConfig, "name"> & {
1381
1374
  plugins: string[];
1382
1375
  };
1383
- readonly "recommended-legacy": typeof recommendedConfig & {
1384
- name: string;
1376
+ readonly "recommended-legacy": Omit<typeof recommendedConfig, "name"> & {
1385
1377
  plugins: string[];
1386
1378
  };
1387
- readonly "recommended-type-checked-legacy": typeof recommendedTypeCheckedConfig & {
1388
- name: string;
1379
+ readonly "recommended-type-checked-legacy": Omit<typeof recommendedTypeCheckedConfig, "name"> & {
1389
1380
  plugins: string[];
1390
1381
  };
1391
- readonly "recommended-typescript-legacy": typeof recommendedTypeScriptConfig & {
1392
- name: string;
1382
+ readonly "recommended-typescript-legacy": Omit<typeof recommendedTypeScriptConfig, "name"> & {
1393
1383
  plugins: string[];
1394
1384
  };
1395
1385
  /** @deprecated Use `disable-dom` instead */
1396
1386
  readonly "off-dom": typeof disableDomConfig;
1397
1387
  /** @deprecated Use `disable-dom-legacy` instead */
1398
- readonly "off-dom-legacy": typeof disableDomConfig & {
1399
- name: string;
1388
+ readonly "off-dom-legacy": Omit<typeof disableDomConfig, "name"> & {
1400
1389
  plugins: string[];
1401
1390
  };
1402
1391
  };
package/dist/index.d.ts CHANGED
@@ -381,9 +381,10 @@ declare namespace coreConfig {
381
381
 
382
382
  declare const name$9 = "@eslint-react/debug";
383
383
  declare const rules$9: {
384
- readonly "@eslint-react/debug/no-unknown-attribute": "warn";
385
- readonly "@eslint-react/debug/no-unknown-event": "warn";
386
- readonly "@eslint-react/debug/no-unknown-property": "warn";
384
+ readonly "@eslint-react/debug/class-component": "warn";
385
+ readonly "@eslint-react/debug/function-component": "warn";
386
+ readonly "@eslint-react/debug/hook": "warn";
387
+ readonly "@eslint-react/debug/is-from-react": "warn";
387
388
  };
388
389
  declare const plugins$4: {
389
390
  "@eslint-react/debug": {
@@ -407,9 +408,10 @@ declare namespace debugConfig {
407
408
 
408
409
  declare const name$8 = "@eslint-react/disable-debug";
409
410
  declare const rules$8: {
410
- "@eslint-react/debug/no-unknown-attribute"?: "off";
411
- "@eslint-react/debug/no-unknown-event"?: "off";
412
- "@eslint-react/debug/no-unknown-property"?: "off";
411
+ "@eslint-react/debug/class-component"?: "off";
412
+ "@eslint-react/debug/function-component"?: "off";
413
+ "@eslint-react/debug/hook"?: "off";
414
+ "@eslint-react/debug/is-from-react"?: "off";
413
415
  };
414
416
 
415
417
  declare namespace disableDebugConfig {
@@ -1344,59 +1346,46 @@ declare const _default: {
1344
1346
  readonly recommended: typeof recommendedConfig;
1345
1347
  readonly "recommended-type-checked": typeof recommendedTypeCheckedConfig;
1346
1348
  readonly "recommended-typescript": typeof recommendedTypeScriptConfig;
1347
- readonly "all-legacy": typeof allConfig & {
1348
- name: string;
1349
+ readonly "all-legacy": Omit<typeof allConfig, "name"> & {
1349
1350
  plugins: string[];
1350
1351
  };
1351
- readonly "core-legacy": typeof coreConfig & {
1352
- name: string;
1352
+ readonly "core-legacy": Omit<typeof coreConfig, "name"> & {
1353
1353
  plugins: string[];
1354
1354
  };
1355
- readonly "debug-legacy": typeof debugConfig & {
1356
- name: string;
1355
+ readonly "debug-legacy": Omit<typeof debugConfig, "name"> & {
1357
1356
  plugins: string[];
1358
1357
  };
1359
- readonly "disable-debug-legacy": typeof disableDebugConfig & {
1360
- name: string;
1358
+ readonly "disable-debug-legacy": Omit<typeof disableDebugConfig, "name"> & {
1361
1359
  plugins: string[];
1362
1360
  };
1363
- readonly "disable-dom-legacy": typeof disableDomConfig & {
1364
- name: string;
1361
+ readonly "disable-dom-legacy": Omit<typeof disableDomConfig, "name"> & {
1365
1362
  plugins: string[];
1366
1363
  };
1367
- readonly "disable-type-checked-legacy": typeof disableTypeCheckedConfig & {
1368
- name: string;
1364
+ readonly "disable-type-checked-legacy": Omit<typeof disableTypeCheckedConfig, "name"> & {
1369
1365
  plugins: string[];
1370
1366
  };
1371
- readonly "disable-web-api-legacy": typeof disableWebApiConfig & {
1372
- name: string;
1367
+ readonly "disable-web-api-legacy": Omit<typeof disableWebApiConfig, "name"> & {
1373
1368
  plugins: string[];
1374
1369
  };
1375
- readonly "dom-legacy": typeof domConfig & {
1376
- name: string;
1370
+ readonly "dom-legacy": Omit<typeof domConfig, "name"> & {
1377
1371
  plugins: string[];
1378
1372
  };
1379
- readonly "off-legacy": typeof offConfig & {
1380
- name: string;
1373
+ readonly "off-legacy": Omit<typeof offConfig, "name"> & {
1381
1374
  plugins: string[];
1382
1375
  };
1383
- readonly "recommended-legacy": typeof recommendedConfig & {
1384
- name: string;
1376
+ readonly "recommended-legacy": Omit<typeof recommendedConfig, "name"> & {
1385
1377
  plugins: string[];
1386
1378
  };
1387
- readonly "recommended-type-checked-legacy": typeof recommendedTypeCheckedConfig & {
1388
- name: string;
1379
+ readonly "recommended-type-checked-legacy": Omit<typeof recommendedTypeCheckedConfig, "name"> & {
1389
1380
  plugins: string[];
1390
1381
  };
1391
- readonly "recommended-typescript-legacy": typeof recommendedTypeScriptConfig & {
1392
- name: string;
1382
+ readonly "recommended-typescript-legacy": Omit<typeof recommendedTypeScriptConfig, "name"> & {
1393
1383
  plugins: string[];
1394
1384
  };
1395
1385
  /** @deprecated Use `disable-dom` instead */
1396
1386
  readonly "off-dom": typeof disableDomConfig;
1397
1387
  /** @deprecated Use `disable-dom-legacy` instead */
1398
- readonly "off-dom-legacy": typeof disableDomConfig & {
1399
- name: string;
1388
+ readonly "off-dom-legacy": Omit<typeof disableDomConfig, "name"> & {
1400
1389
  plugins: string[];
1401
1390
  };
1402
1391
  };
package/dist/index.js CHANGED
@@ -25,7 +25,7 @@ var __export = (target, all) => {
25
25
 
26
26
  // package.json
27
27
  var name = "@eslint-react/eslint-plugin";
28
- var version = "1.17.0-next.2";
28
+ var version = "1.17.0-next.4";
29
29
 
30
30
  // src/configs/all.ts
31
31
  var all_exports = {};
@@ -192,6 +192,7 @@ var rules3 = {
192
192
  "@eslint-react/hooks-extra/no-unnecessary-use-callback": "warn",
193
193
  "@eslint-react/hooks-extra/no-unnecessary-use-memo": "warn",
194
194
  "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn",
195
+ // Part: Naming Convention
195
196
  "@eslint-react/naming-convention/component-name": "warn",
196
197
  "@eslint-react/naming-convention/filename": "warn",
197
198
  "@eslint-react/naming-convention/filename-extension": "warn",
@@ -218,9 +219,10 @@ __export(debug_exports, {
218
219
  });
219
220
  var name5 = "@eslint-react/debug";
220
221
  var rules4 = {
221
- "@eslint-react/debug/no-unknown-attribute": "warn",
222
- "@eslint-react/debug/no-unknown-event": "warn",
223
- "@eslint-react/debug/no-unknown-property": "warn"
222
+ "@eslint-react/debug/class-component": "warn",
223
+ "@eslint-react/debug/function-component": "warn",
224
+ "@eslint-react/debug/hook": "warn",
225
+ "@eslint-react/debug/is-from-react": "warn"
224
226
  };
225
227
  var plugins4 = {
226
228
  "@eslint-react/debug": reactDebug__default.default
@@ -377,9 +379,9 @@ function padKeysLeft(obj, left) {
377
379
 
378
380
  // src/index.ts
379
381
  function makeLegacyConfig(config) {
382
+ const { name: _, ...rest } = config;
380
383
  return {
381
- ...config,
382
- name: `${config.name}-legacy`,
384
+ ...rest,
383
385
  plugins: ["@eslint-react"]
384
386
  };
385
387
  }
package/dist/index.mjs CHANGED
@@ -14,7 +14,7 @@ var __export = (target, all) => {
14
14
 
15
15
  // package.json
16
16
  var name = "@eslint-react/eslint-plugin";
17
- var version = "1.17.0-next.2";
17
+ var version = "1.17.0-next.4";
18
18
 
19
19
  // src/configs/all.ts
20
20
  var all_exports = {};
@@ -181,6 +181,7 @@ var rules3 = {
181
181
  "@eslint-react/hooks-extra/no-unnecessary-use-callback": "warn",
182
182
  "@eslint-react/hooks-extra/no-unnecessary-use-memo": "warn",
183
183
  "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn",
184
+ // Part: Naming Convention
184
185
  "@eslint-react/naming-convention/component-name": "warn",
185
186
  "@eslint-react/naming-convention/filename": "warn",
186
187
  "@eslint-react/naming-convention/filename-extension": "warn",
@@ -207,9 +208,10 @@ __export(debug_exports, {
207
208
  });
208
209
  var name5 = "@eslint-react/debug";
209
210
  var rules4 = {
210
- "@eslint-react/debug/no-unknown-attribute": "warn",
211
- "@eslint-react/debug/no-unknown-event": "warn",
212
- "@eslint-react/debug/no-unknown-property": "warn"
211
+ "@eslint-react/debug/class-component": "warn",
212
+ "@eslint-react/debug/function-component": "warn",
213
+ "@eslint-react/debug/hook": "warn",
214
+ "@eslint-react/debug/is-from-react": "warn"
213
215
  };
214
216
  var plugins4 = {
215
217
  "@eslint-react/debug": reactDebug
@@ -366,9 +368,9 @@ function padKeysLeft(obj, left) {
366
368
 
367
369
  // src/index.ts
368
370
  function makeLegacyConfig(config) {
371
+ const { name: _, ...rest } = config;
369
372
  return {
370
- ...config,
371
- name: `${config.name}-legacy`,
373
+ ...rest,
372
374
  plugins: ["@eslint-react"]
373
375
  };
374
376
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/eslint-plugin",
3
- "version": "1.17.0-next.2",
3
+ "version": "1.17.0-next.4",
4
4
  "description": "The main ESLint plugin of ESLint React. Contains all the rules and presets of ESLint React.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -47,15 +47,15 @@
47
47
  "@typescript-eslint/type-utils": "^8.15.0",
48
48
  "@typescript-eslint/types": "^8.15.0",
49
49
  "@typescript-eslint/utils": "^8.15.0",
50
- "@eslint-react/shared": "1.17.0-next.2",
51
- "@eslint-react/tools": "1.17.0-next.2",
52
- "@eslint-react/types": "1.17.0-next.2",
53
- "eslint-plugin-react-debug": "1.17.0-next.2",
54
- "eslint-plugin-react-hooks-extra": "1.17.0-next.2",
55
- "eslint-plugin-react-dom": "1.17.0-next.2",
56
- "eslint-plugin-react-naming-convention": "1.17.0-next.2",
57
- "eslint-plugin-react-web-api": "1.17.0-next.2",
58
- "eslint-plugin-react-x": "1.17.0-next.2"
50
+ "@eslint-react/shared": "1.17.0-next.4",
51
+ "@eslint-react/tools": "1.17.0-next.4",
52
+ "eslint-plugin-react-debug": "1.17.0-next.4",
53
+ "eslint-plugin-react-dom": "1.17.0-next.4",
54
+ "eslint-plugin-react-naming-convention": "1.17.0-next.4",
55
+ "@eslint-react/types": "1.17.0-next.4",
56
+ "eslint-plugin-react-hooks-extra": "1.17.0-next.4",
57
+ "eslint-plugin-react-web-api": "1.17.0-next.4",
58
+ "eslint-plugin-react-x": "1.17.0-next.4"
59
59
  },
60
60
  "devDependencies": {
61
61
  "tsup": "^8.3.5"