@eslint-react/eslint-plugin 1.13.1 → 1.14.0-beta.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.js CHANGED
@@ -8,36 +8,20 @@ var reactNamingConvention = require('eslint-plugin-react-naming-convention');
8
8
  var reactWebApi = require('eslint-plugin-react-web-api');
9
9
  var react = require('eslint-plugin-react-x');
10
10
 
11
- function _interopNamespace(e) {
12
- if (e && e.__esModule) return e;
13
- var n = Object.create(null);
14
- if (e) {
15
- Object.keys(e).forEach(function (k) {
16
- if (k !== 'default') {
17
- var d = Object.getOwnPropertyDescriptor(e, k);
18
- Object.defineProperty(n, k, d.get ? d : {
19
- enumerable: true,
20
- get: function () { return e[k]; }
21
- });
22
- }
23
- });
24
- }
25
- n.default = e;
26
- return Object.freeze(n);
27
- }
11
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
28
12
 
29
- var reactDebug__namespace = /*#__PURE__*/_interopNamespace(reactDebug);
30
- var reactDom__namespace = /*#__PURE__*/_interopNamespace(reactDom);
31
- var reactHooksExtra__namespace = /*#__PURE__*/_interopNamespace(reactHooksExtra);
32
- var reactNamingConvention__namespace = /*#__PURE__*/_interopNamespace(reactNamingConvention);
33
- var reactWebApi__namespace = /*#__PURE__*/_interopNamespace(reactWebApi);
34
- var react__namespace = /*#__PURE__*/_interopNamespace(react);
13
+ var reactDebug__default = /*#__PURE__*/_interopDefault(reactDebug);
14
+ var reactDom__default = /*#__PURE__*/_interopDefault(reactDom);
15
+ var reactHooksExtra__default = /*#__PURE__*/_interopDefault(reactHooksExtra);
16
+ var reactNamingConvention__default = /*#__PURE__*/_interopDefault(reactNamingConvention);
17
+ var reactWebApi__default = /*#__PURE__*/_interopDefault(reactWebApi);
18
+ var react__default = /*#__PURE__*/_interopDefault(react);
35
19
 
36
20
  // src/index.ts
37
21
 
38
22
  // package.json
39
23
  var name = "@eslint-react/eslint-plugin";
40
- var version = "1.13.1";
24
+ var version = "1.14.0-beta.0";
41
25
  function transformKeys(obj, transform) {
42
26
  if (tools.typeOf(obj) !== "object") return obj;
43
27
  const res = {};
@@ -227,34 +211,34 @@ var offPreset = {
227
211
  ...disableTypeCheckedPreset
228
212
  };
229
213
  var corePresetSettings = {
230
- ...react__namespace.DEFAULT_ESLINT_REACT_SETTINGS
214
+ ...react__default.default.DEFAULT_ESLINT_REACT_SETTINGS
231
215
  };
232
216
  var domPresetSettings = {
233
217
  ...corePresetSettings,
234
- ...reactDom__namespace.DEFAULT_ESLINT_REACT_SETTINGS
218
+ ...reactDom__default.default.DEFAULT_ESLINT_REACT_SETTINGS
235
219
  };
236
220
  var legacyConfigPlugins = ["@eslint-react"];
237
221
  var flatConfigPlugins = {
238
- "@eslint-react": react__namespace,
239
- "@eslint-react/debug": reactDebug__namespace,
240
- "@eslint-react/dom": reactDom__namespace,
241
- "@eslint-react/hooks-extra": reactHooksExtra__namespace,
242
- "@eslint-react/naming-convention": reactNamingConvention__namespace,
243
- "@eslint-react/web-api": reactWebApi__namespace
222
+ "@eslint-react": react__default.default,
223
+ "@eslint-react/debug": reactDebug__default.default,
224
+ "@eslint-react/dom": reactDom__default.default,
225
+ "@eslint-react/hooks-extra": reactHooksExtra__default.default,
226
+ "@eslint-react/naming-convention": reactNamingConvention__default.default,
227
+ "@eslint-react/web-api": reactWebApi__default.default
244
228
  };
245
- function createLegacyConfig(rules7, settings = react__namespace.DEFAULT_ESLINT_REACT_SETTINGS) {
229
+ function createLegacyConfig(rules, settings = react__default.default.DEFAULT_ESLINT_REACT_SETTINGS) {
246
230
  return {
247
231
  plugins: legacyConfigPlugins,
248
- rules: padKeysLeft(rules7, "@eslint-react/"),
232
+ rules: padKeysLeft(rules, "@eslint-react/"),
249
233
  settings: {
250
234
  "react-x": settings
251
235
  }
252
236
  };
253
237
  }
254
- function createFlatConfig(rules7, settings = react__namespace.DEFAULT_ESLINT_REACT_SETTINGS) {
238
+ function createFlatConfig(rules, settings = react__default.default.DEFAULT_ESLINT_REACT_SETTINGS) {
255
239
  return {
256
240
  plugins: flatConfigPlugins,
257
- rules: padKeysLeft(rules7, "@eslint-react/"),
241
+ rules: padKeysLeft(rules, "@eslint-react/"),
258
242
  settings: {
259
243
  "react-x": settings
260
244
  }
@@ -297,12 +281,12 @@ var src_default = {
297
281
  /* eslint-enable perfectionist/sort-objects */
298
282
  },
299
283
  rules: {
300
- ...react__namespace.rules,
301
- ...padKeysLeft(reactDom__namespace.rules, "dom/"),
302
- ...padKeysLeft(reactWebApi__namespace.rules, "web-api/"),
303
- ...padKeysLeft(reactHooksExtra__namespace.rules, "hooks-extra/"),
304
- ...padKeysLeft(reactNamingConvention__namespace.rules, "naming-convention/"),
305
- ...padKeysLeft(reactDebug__namespace.rules, "debug/")
284
+ ...react__default.default.rules,
285
+ ...padKeysLeft(reactDom__default.default.rules, "dom/"),
286
+ ...padKeysLeft(reactWebApi__default.default.rules, "web-api/"),
287
+ ...padKeysLeft(reactHooksExtra__default.default.rules, "hooks-extra/"),
288
+ ...padKeysLeft(reactNamingConvention__default.default.rules, "naming-convention/"),
289
+ ...padKeysLeft(reactDebug__default.default.rules, "debug/")
306
290
  }
307
291
  };
308
292
 
package/dist/index.mjs CHANGED
@@ -1,16 +1,16 @@
1
1
  import { fromEntries, entries, typeOf } from '@eslint-react/tools';
2
- import * as reactDebug from 'eslint-plugin-react-debug';
3
- import * as reactDom from 'eslint-plugin-react-dom';
4
- import * as reactHooksExtra from 'eslint-plugin-react-hooks-extra';
5
- import * as reactNamingConvention from 'eslint-plugin-react-naming-convention';
6
- import * as reactWebApi from 'eslint-plugin-react-web-api';
7
- import * as react from 'eslint-plugin-react-x';
2
+ import reactDebug from 'eslint-plugin-react-debug';
3
+ import reactDom from 'eslint-plugin-react-dom';
4
+ import reactHooksExtra from 'eslint-plugin-react-hooks-extra';
5
+ import reactNamingConvention from 'eslint-plugin-react-naming-convention';
6
+ import reactWebApi from 'eslint-plugin-react-web-api';
7
+ import react from 'eslint-plugin-react-x';
8
8
 
9
9
  // src/index.ts
10
10
 
11
11
  // package.json
12
12
  var name = "@eslint-react/eslint-plugin";
13
- var version = "1.13.1";
13
+ var version = "1.14.0-beta.0";
14
14
  function transformKeys(obj, transform) {
15
15
  if (typeOf(obj) !== "object") return obj;
16
16
  const res = {};
@@ -215,19 +215,19 @@ var flatConfigPlugins = {
215
215
  "@eslint-react/naming-convention": reactNamingConvention,
216
216
  "@eslint-react/web-api": reactWebApi
217
217
  };
218
- function createLegacyConfig(rules7, settings = react.DEFAULT_ESLINT_REACT_SETTINGS) {
218
+ function createLegacyConfig(rules, settings = react.DEFAULT_ESLINT_REACT_SETTINGS) {
219
219
  return {
220
220
  plugins: legacyConfigPlugins,
221
- rules: padKeysLeft(rules7, "@eslint-react/"),
221
+ rules: padKeysLeft(rules, "@eslint-react/"),
222
222
  settings: {
223
223
  "react-x": settings
224
224
  }
225
225
  };
226
226
  }
227
- function createFlatConfig(rules7, settings = react.DEFAULT_ESLINT_REACT_SETTINGS) {
227
+ function createFlatConfig(rules, settings = react.DEFAULT_ESLINT_REACT_SETTINGS) {
228
228
  return {
229
229
  plugins: flatConfigPlugins,
230
- rules: padKeysLeft(rules7, "@eslint-react/"),
230
+ rules: padKeysLeft(rules, "@eslint-react/"),
231
231
  settings: {
232
232
  "react-x": settings
233
233
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/eslint-plugin",
3
- "version": "1.13.1",
3
+ "version": "1.14.0-beta.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",
@@ -43,19 +43,19 @@
43
43
  "./package.json"
44
44
  ],
45
45
  "dependencies": {
46
- "@typescript-eslint/scope-manager": "^8.4.0",
47
- "@typescript-eslint/type-utils": "^8.4.0",
48
- "@typescript-eslint/types": "^8.4.0",
49
- "@typescript-eslint/utils": "^8.4.0",
50
- "@eslint-react/shared": "1.13.1",
51
- "@eslint-react/types": "1.13.1",
52
- "@eslint-react/tools": "1.13.1",
53
- "eslint-plugin-react-debug": "1.13.1",
54
- "eslint-plugin-react-dom": "1.13.1",
55
- "eslint-plugin-react-hooks-extra": "1.13.1",
56
- "eslint-plugin-react-naming-convention": "1.13.1",
57
- "eslint-plugin-react-web-api": "1.13.1",
58
- "eslint-plugin-react-x": "1.13.1"
46
+ "@typescript-eslint/scope-manager": "^8.5.0",
47
+ "@typescript-eslint/type-utils": "^8.5.0",
48
+ "@typescript-eslint/types": "^8.5.0",
49
+ "@typescript-eslint/utils": "^8.5.0",
50
+ "@eslint-react/shared": "1.14.0-beta.0",
51
+ "@eslint-react/tools": "1.14.0-beta.0",
52
+ "@eslint-react/types": "1.14.0-beta.0",
53
+ "eslint-plugin-react-debug": "1.14.0-beta.0",
54
+ "eslint-plugin-react-dom": "1.14.0-beta.0",
55
+ "eslint-plugin-react-hooks-extra": "1.14.0-beta.0",
56
+ "eslint-plugin-react-naming-convention": "1.14.0-beta.0",
57
+ "eslint-plugin-react-web-api": "1.14.0-beta.0",
58
+ "eslint-plugin-react-x": "1.14.0-beta.0"
59
59
  },
60
60
  "devDependencies": {
61
61
  "tsup": "^8.2.4"