@eslint-react/eslint-plugin 1.8.1 → 1.8.2-next.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/dist/index.d.mts CHANGED
@@ -1,18 +1,10 @@
1
1
  import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
2
- export { ESLintReactSettings } from '@eslint-react/shared';
3
2
  import * as reactDebug from 'eslint-plugin-react-debug';
4
3
  import * as reactDom from 'eslint-plugin-react-dom';
5
4
  import * as reactHooksExtra from 'eslint-plugin-react-hooks-extra';
6
5
  import * as reactNamingConvention from 'eslint-plugin-react-naming-convention';
7
6
  import * as react from 'eslint-plugin-react-x';
8
7
 
9
- declare const plugins: {
10
- readonly "@eslint-react": typeof react;
11
- readonly "@eslint-react/debug": typeof reactDebug;
12
- readonly "@eslint-react/dom": typeof reactDom;
13
- readonly "@eslint-react/hooks-extra": typeof reactHooksExtra;
14
- readonly "@eslint-react/naming-convention": typeof reactNamingConvention;
15
- };
16
8
  declare const _default: {
17
9
  readonly meta: {
18
10
  readonly name: string;
@@ -1266,4 +1258,4 @@ declare const _default: {
1266
1258
  };
1267
1259
  };
1268
1260
 
1269
- export { _default as default, plugins };
1261
+ export { _default as default };
package/dist/index.d.ts CHANGED
@@ -1,18 +1,10 @@
1
1
  import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
2
- export { ESLintReactSettings } from '@eslint-react/shared';
3
2
  import * as reactDebug from 'eslint-plugin-react-debug';
4
3
  import * as reactDom from 'eslint-plugin-react-dom';
5
4
  import * as reactHooksExtra from 'eslint-plugin-react-hooks-extra';
6
5
  import * as reactNamingConvention from 'eslint-plugin-react-naming-convention';
7
6
  import * as react from 'eslint-plugin-react-x';
8
7
 
9
- declare const plugins: {
10
- readonly "@eslint-react": typeof react;
11
- readonly "@eslint-react/debug": typeof reactDebug;
12
- readonly "@eslint-react/dom": typeof reactDom;
13
- readonly "@eslint-react/hooks-extra": typeof reactHooksExtra;
14
- readonly "@eslint-react/naming-convention": typeof reactNamingConvention;
15
- };
16
8
  declare const _default: {
17
9
  readonly meta: {
18
10
  readonly name: string;
@@ -1266,4 +1258,4 @@ declare const _default: {
1266
1258
  };
1267
1259
  };
1268
1260
 
1269
- export { _default as default, plugins };
1261
+ export { _default as default };
package/dist/index.js CHANGED
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var shared = require('@eslint-react/shared');
6
4
  var reactDebug = require('eslint-plugin-react-debug');
7
5
  var reactDom = require('eslint-plugin-react-dom');
@@ -40,7 +38,7 @@ var R__namespace = /*#__PURE__*/_interopNamespace(R);
40
38
 
41
39
  // package.json
42
40
  var name = "@eslint-react/eslint-plugin";
43
- var version = "1.8.1";
41
+ var version = "1.8.2-next.0";
44
42
  function transformKeys(obj, transform) {
45
43
  if (tools.typeOf(obj) !== "object") return obj;
46
44
  const res = {};
@@ -234,7 +232,8 @@ var debugPreset = {
234
232
  var allPresetEntries = R__namespace.entries(allPreset);
235
233
  var offPreset = R__namespace.fromEntries(allPresetEntries.map(([key]) => [key, "off"]));
236
234
  var offDomPreset = R__namespace.fromEntries(R__namespace.entries(domPreset).map(([key]) => [key, "off"]));
237
- var plugins = {
235
+ var legacyConfigPlugins = ["@eslint-react"];
236
+ var flatConfigPlugins = {
238
237
  "@eslint-react": react__namespace,
239
238
  "@eslint-react/debug": reactDebug__namespace,
240
239
  "@eslint-react/dom": reactDom__namespace,
@@ -243,16 +242,16 @@ var plugins = {
243
242
  };
244
243
  function createLegacyConfig(rules6, settings = shared.DEFAULT_ESLINT_REACT_SETTINGS) {
245
244
  return {
246
- plugins: ["@eslint-react"],
245
+ plugins: legacyConfigPlugins,
247
246
  rules: padKeysLeft(rules6, "@eslint-react/"),
248
247
  settings: {
249
248
  "react-x": settings
250
249
  }
251
250
  };
252
251
  }
253
- function createConfig(rules6, settings = shared.DEFAULT_ESLINT_REACT_SETTINGS) {
252
+ function createFlatConfig(rules6, settings = shared.DEFAULT_ESLINT_REACT_SETTINGS) {
254
253
  return {
255
- plugins,
254
+ plugins: flatConfigPlugins,
256
255
  rules: padKeysLeft(rules6, "@eslint-react/"),
257
256
  settings: {
258
257
  "react-x": settings
@@ -265,13 +264,13 @@ var src_default = {
265
264
  version
266
265
  },
267
266
  configs: {
268
- all: createConfig(allPreset),
269
- debug: createConfig(debugPreset),
270
- dom: createConfig(domPreset, domPresetSettings),
271
- off: createConfig(offPreset),
272
- "off-dom": createConfig(offDomPreset),
273
- recommended: createConfig(recommendedPreset),
274
- "recommended-type-checked": createConfig(recommendedTypeCheckedPreset),
267
+ all: createFlatConfig(allPreset),
268
+ debug: createFlatConfig(debugPreset),
269
+ dom: createFlatConfig(domPreset, domPresetSettings),
270
+ off: createFlatConfig(offPreset),
271
+ "off-dom": createFlatConfig(offDomPreset),
272
+ recommended: createFlatConfig(recommendedPreset),
273
+ "recommended-type-checked": createFlatConfig(recommendedTypeCheckedPreset),
275
274
  // eslint-disable-next-line perfectionist/sort-objects
276
275
  "all-legacy": createLegacyConfig(allPreset),
277
276
  "debug-legacy": createLegacyConfig(debugPreset),
@@ -290,5 +289,4 @@ var src_default = {
290
289
  }
291
290
  };
292
291
 
293
- exports.default = src_default;
294
- exports.plugins = plugins;
292
+ module.exports = src_default;
package/dist/index.mjs CHANGED
@@ -11,7 +11,7 @@ import { typeOf } from '@eslint-react/tools';
11
11
 
12
12
  // package.json
13
13
  var name = "@eslint-react/eslint-plugin";
14
- var version = "1.8.1";
14
+ var version = "1.8.2-next.0";
15
15
  function transformKeys(obj, transform) {
16
16
  if (typeOf(obj) !== "object") return obj;
17
17
  const res = {};
@@ -205,7 +205,8 @@ var debugPreset = {
205
205
  var allPresetEntries = R.entries(allPreset);
206
206
  var offPreset = R.fromEntries(allPresetEntries.map(([key]) => [key, "off"]));
207
207
  var offDomPreset = R.fromEntries(R.entries(domPreset).map(([key]) => [key, "off"]));
208
- var plugins = {
208
+ var legacyConfigPlugins = ["@eslint-react"];
209
+ var flatConfigPlugins = {
209
210
  "@eslint-react": react,
210
211
  "@eslint-react/debug": reactDebug,
211
212
  "@eslint-react/dom": reactDom,
@@ -214,16 +215,16 @@ var plugins = {
214
215
  };
215
216
  function createLegacyConfig(rules6, settings = DEFAULT_ESLINT_REACT_SETTINGS) {
216
217
  return {
217
- plugins: ["@eslint-react"],
218
+ plugins: legacyConfigPlugins,
218
219
  rules: padKeysLeft(rules6, "@eslint-react/"),
219
220
  settings: {
220
221
  "react-x": settings
221
222
  }
222
223
  };
223
224
  }
224
- function createConfig(rules6, settings = DEFAULT_ESLINT_REACT_SETTINGS) {
225
+ function createFlatConfig(rules6, settings = DEFAULT_ESLINT_REACT_SETTINGS) {
225
226
  return {
226
- plugins,
227
+ plugins: flatConfigPlugins,
227
228
  rules: padKeysLeft(rules6, "@eslint-react/"),
228
229
  settings: {
229
230
  "react-x": settings
@@ -236,13 +237,13 @@ var src_default = {
236
237
  version
237
238
  },
238
239
  configs: {
239
- all: createConfig(allPreset),
240
- debug: createConfig(debugPreset),
241
- dom: createConfig(domPreset, domPresetSettings),
242
- off: createConfig(offPreset),
243
- "off-dom": createConfig(offDomPreset),
244
- recommended: createConfig(recommendedPreset),
245
- "recommended-type-checked": createConfig(recommendedTypeCheckedPreset),
240
+ all: createFlatConfig(allPreset),
241
+ debug: createFlatConfig(debugPreset),
242
+ dom: createFlatConfig(domPreset, domPresetSettings),
243
+ off: createFlatConfig(offPreset),
244
+ "off-dom": createFlatConfig(offDomPreset),
245
+ recommended: createFlatConfig(recommendedPreset),
246
+ "recommended-type-checked": createFlatConfig(recommendedTypeCheckedPreset),
246
247
  // eslint-disable-next-line perfectionist/sort-objects
247
248
  "all-legacy": createLegacyConfig(allPreset),
248
249
  "debug-legacy": createLegacyConfig(debugPreset),
@@ -261,4 +262,4 @@ var src_default = {
261
262
  }
262
263
  };
263
264
 
264
- export { src_default as default, plugins };
265
+ export { src_default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/eslint-plugin",
3
- "version": "1.8.1",
3
+ "version": "1.8.2-next.0",
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",
@@ -48,14 +48,14 @@
48
48
  "@typescript-eslint/types": "^8.0.0",
49
49
  "@typescript-eslint/utils": "^8.0.0",
50
50
  "remeda": "^2.7.0",
51
- "@eslint-react/shared": "1.8.1",
52
- "@eslint-react/tools": "1.8.1",
53
- "@eslint-react/types": "1.8.1",
54
- "eslint-plugin-react-debug": "1.8.1",
55
- "eslint-plugin-react-hooks-extra": "1.8.1",
56
- "eslint-plugin-react-naming-convention": "1.8.1",
57
- "eslint-plugin-react-x": "1.8.1",
58
- "eslint-plugin-react-dom": "1.8.1"
51
+ "@eslint-react/shared": "1.8.2-next.0",
52
+ "@eslint-react/tools": "1.8.2-next.0",
53
+ "@eslint-react/types": "1.8.2-next.0",
54
+ "eslint-plugin-react-hooks-extra": "1.8.2-next.0",
55
+ "eslint-plugin-react-naming-convention": "1.8.2-next.0",
56
+ "eslint-plugin-react-dom": "1.8.2-next.0",
57
+ "eslint-plugin-react-x": "1.8.2-next.0",
58
+ "eslint-plugin-react-debug": "1.8.2-next.0"
59
59
  },
60
60
  "devDependencies": {
61
61
  "tsup": "8.2.4"