@eslint-react/eslint-plugin 1.23.3-next.7 → 1.24.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/README.md CHANGED
@@ -20,11 +20,11 @@ A set of composable ESLint rules for libraries and frameworks that use React as
20
20
 
21
21
  ### Modular plugins
22
22
 
23
- - [`eslint-plugin-react-x`](https://github.com/rEl1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) - Core rules (renderer-agnostic, compatible with x-platform).
24
- - [`eslint-plugin-react-dom`](https://github.com/rEl1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) - DOM specific rules for React DOM.
25
- - [`eslint-plugin-react-web-api`](https://github.com/rEl1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-web-api) - Rules for interacting with Web APIs.
26
- - [`eslint-plugin-react-hooks-extra`](https://github.com/rEl1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-hooks-extra) - Extra React Hooks rules.
27
- - [`eslint-plugin-react-naming-convention`](https://github.com/rEl1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-naming-convention) - Naming convention rules.
23
+ - [`eslint-plugin-react-x`](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) - Core rules (renderer-agnostic, compatible with x-platform).
24
+ - [`eslint-plugin-react-dom`](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) - DOM specific rules for React DOM.
25
+ - [`eslint-plugin-react-web-api`](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-web-api) - Rules for interacting with Web APIs.
26
+ - [`eslint-plugin-react-hooks-extra`](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-hooks-extra) - Extra React Hooks rules.
27
+ - [`eslint-plugin-react-naming-convention`](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-naming-convention) - Naming convention rules.
28
28
 
29
29
  ## Installation
30
30
 
@@ -114,12 +114,13 @@ export default tseslint.config({
114
114
  ### Also available in
115
115
 
116
116
  - [`antfu/eslint-config`](https://github.com/antfu/eslint-config) - Anthony's ESLint config preset.
117
+ - [`eslint-config-rebeccastevens`](https://github.com/RebeccaStevens/eslint-config-rebeccastevens) - Rebecca's ESLint config preset.
117
118
  - [`eslint-config-sheriff`](https://github.com/AndreaPontrandolfo/sheriff) - A comprehensive and opinionated Typescript-first ESLint configuration.
118
119
  - [`eslint-config-sukka`](https://github.com/SukkaW/eslint-config-sukka) - Sukka's ESLint config preset.
119
120
 
120
- _Data collected from GitHub dependents network, if there are any mismatch or outdated information, feel free to [open issue](https://github.com/rEl1cx/eslint-react/issues/new?assignees=&labels=type%3A+documentation&projects=&template=docs_report.md&title=%5Bdocs%5D+) or pull request._
121
+ _Data collected from GitHub dependents network, if there are any mismatch or outdated information, feel free to [open issue](https://github.com/Rel1cx/eslint-react/issues/new?assignees=&labels=type%3A+documentation&projects=&template=docs_report.md&title=%5Bdocs%5D+) or pull request._
121
122
 
122
- Find more on [GitHub Dependents](https://github.com/rEl1cx/eslint-react/network/dependents).
123
+ Find more on [GitHub Dependents](https://github.com/Rel1cx/eslint-react/network/dependents).
123
124
 
124
125
  ## Contributing
125
126
 
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ var reactNamingConvention = require('eslint-plugin-react-naming-convention');
7
7
  var reactWebApi = require('eslint-plugin-react-web-api');
8
8
  var react = require('eslint-plugin-react-x');
9
9
  var shared = require('@eslint-react/shared');
10
- var types = require('@eslint-react/types');
10
+ var eff = require('@eslint-react/eff');
11
11
 
12
12
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
13
13
 
@@ -26,7 +26,7 @@ var __export = (target, all) => {
26
26
 
27
27
  // package.json
28
28
  var name = "@eslint-react/eslint-plugin";
29
- var version = "1.23.3-next.7";
29
+ var version = "1.24.0-beta.0";
30
30
 
31
31
  // src/configs/all.ts
32
32
  var all_exports = {};
@@ -237,7 +237,7 @@ __export(disable_debug_exports, {
237
237
  rules: () => rules5
238
238
  });
239
239
  var name6 = "@eslint-react/disable-debug";
240
- var rules5 = types.fromEntries(types.entries(rules4).map(([key]) => [key, "off"]));
240
+ var rules5 = eff.fromEntries(eff.entries(rules4).map(([key]) => [key, "off"]));
241
241
 
242
242
  // src/configs/disable-dom.ts
243
243
  var disable_dom_exports = {};
@@ -246,7 +246,7 @@ __export(disable_dom_exports, {
246
246
  rules: () => rules6
247
247
  });
248
248
  var name7 = "@eslint-react/disable-dom";
249
- var rules6 = types.fromEntries(types.entries(rules2).map(([key]) => [key, "off"]));
249
+ var rules6 = eff.fromEntries(eff.entries(rules2).map(([key]) => [key, "off"]));
250
250
 
251
251
  // src/configs/disable-type-checked.ts
252
252
  var disable_type_checked_exports = {};
@@ -278,7 +278,7 @@ var plugins5 = {
278
278
 
279
279
  // src/configs/disable-web-api.ts
280
280
  var name9 = "@eslint-react/disable-web-api";
281
- var rules9 = types.fromEntries(types.entries(rules8).map(([key]) => [key, "off"]));
281
+ var rules9 = eff.fromEntries(eff.entries(rules8).map(([key]) => [key, "off"]));
282
282
 
283
283
  // src/configs/off.ts
284
284
  var off_exports = {};
@@ -288,7 +288,7 @@ __export(off_exports, {
288
288
  });
289
289
  var name10 = "@eslint-react/off";
290
290
  var rules10 = {
291
- ...types.fromEntries(types.entries(rules3).map(([key]) => [key, "off"])),
291
+ ...eff.fromEntries(eff.entries(rules3).map(([key]) => [key, "off"])),
292
292
  ...rules7
293
293
  };
294
294
 
@@ -365,8 +365,15 @@ var plugins8 = {
365
365
  var settings7 = {
366
366
  ...settings6
367
367
  };
368
+
369
+ // src/utils/type-of.ts
370
+ function typeOf(t) {
371
+ return Object.prototype.toString.call(t).replace(/^\[object (.+)\]$/, "$1").toLowerCase();
372
+ }
373
+
374
+ // src/utils/transform-keys.ts
368
375
  function transformKeys(obj, transform) {
369
- if (types.typeOf(obj) !== "object") {
376
+ if (typeOf(obj) !== "object") {
370
377
  return obj;
371
378
  }
372
379
  const res = {};
@@ -383,7 +390,7 @@ function padKeysLeft(obj, left) {
383
390
 
384
391
  // src/index.ts
385
392
  function makeLegacyConfig(config) {
386
- const { name: _, ...rest } = config;
393
+ const { name: drop, ...rest } = config;
387
394
  return {
388
395
  ...rest,
389
396
  plugins: ["@eslint-react"]
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ import reactNamingConvention from 'eslint-plugin-react-naming-convention';
5
5
  import reactWebApi from 'eslint-plugin-react-web-api';
6
6
  import react from 'eslint-plugin-react-x';
7
7
  import { DEFAULT_ESLINT_REACT_SETTINGS } from '@eslint-react/shared';
8
- import { fromEntries, entries, typeOf } from '@eslint-react/types';
8
+ import { fromEntries, entries } from '@eslint-react/eff';
9
9
 
10
10
  var __defProp = Object.defineProperty;
11
11
  var __export = (target, all) => {
@@ -15,7 +15,7 @@ var __export = (target, all) => {
15
15
 
16
16
  // package.json
17
17
  var name = "@eslint-react/eslint-plugin";
18
- var version = "1.23.3-next.7";
18
+ var version = "1.24.0-beta.0";
19
19
 
20
20
  // src/configs/all.ts
21
21
  var all_exports = {};
@@ -354,6 +354,13 @@ var plugins8 = {
354
354
  var settings7 = {
355
355
  ...settings6
356
356
  };
357
+
358
+ // src/utils/type-of.ts
359
+ function typeOf(t) {
360
+ return Object.prototype.toString.call(t).replace(/^\[object (.+)\]$/, "$1").toLowerCase();
361
+ }
362
+
363
+ // src/utils/transform-keys.ts
357
364
  function transformKeys(obj, transform) {
358
365
  if (typeOf(obj) !== "object") {
359
366
  return obj;
@@ -372,7 +379,7 @@ function padKeysLeft(obj, left) {
372
379
 
373
380
  // src/index.ts
374
381
  function makeLegacyConfig(config) {
375
- const { name: _, ...rest } = config;
382
+ const { name: drop, ...rest } = config;
376
383
  return {
377
384
  ...rest,
378
385
  plugins: ["@eslint-react"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/eslint-plugin",
3
- "version": "1.23.3-next.7",
3
+ "version": "1.24.0-beta.0",
4
4
  "description": "A set of composable ESLint rules for libraries and frameworks that use React as a UI runtime.",
5
5
  "keywords": [
6
6
  "react",
@@ -13,13 +13,13 @@
13
13
  "eslint-plugin-react-hooks-extra",
14
14
  "eslint-plugin-react-naming-convention"
15
15
  ],
16
- "homepage": "https://github.com/rEl1cx/eslint-react",
16
+ "homepage": "https://github.com/Rel1cx/eslint-react",
17
17
  "bugs": {
18
- "url": "https://github.com/rEl1cx/eslint-react/issues"
18
+ "url": "https://github.com/Rel1cx/eslint-react/issues"
19
19
  },
20
20
  "repository": {
21
21
  "type": "git",
22
- "url": "git+https://github.com/rEl1cx/eslint-react.git",
22
+ "url": "git+https://github.com/Rel1cx/eslint-react.git",
23
23
  "directory": "packages/plugins/eslint-plugin"
24
24
  },
25
25
  "license": "MIT",
@@ -48,15 +48,15 @@
48
48
  "@typescript-eslint/type-utils": "^8.19.1",
49
49
  "@typescript-eslint/types": "^8.19.1",
50
50
  "@typescript-eslint/utils": "^8.19.1",
51
- "@eslint-react/eff": "1.23.3-next.7",
52
- "@eslint-react/shared": "1.23.3-next.7",
53
- "eslint-plugin-react-debug": "1.23.3-next.7",
54
- "eslint-plugin-react-dom": "1.23.3-next.7",
55
- "eslint-plugin-react-hooks-extra": "1.23.3-next.7",
56
- "@eslint-react/types": "1.23.3-next.7",
57
- "eslint-plugin-react-web-api": "1.23.3-next.7",
58
- "eslint-plugin-react-naming-convention": "1.23.3-next.7",
59
- "eslint-plugin-react-x": "1.23.3-next.7"
51
+ "@eslint-react/eff": "1.24.0-beta.0",
52
+ "@eslint-react/shared": "1.24.0-beta.0",
53
+ "@eslint-react/types": "1.24.0-beta.0",
54
+ "eslint-plugin-react-debug": "1.24.0-beta.0",
55
+ "eslint-plugin-react-dom": "1.24.0-beta.0",
56
+ "eslint-plugin-react-web-api": "1.24.0-beta.0",
57
+ "eslint-plugin-react-hooks-extra": "1.24.0-beta.0",
58
+ "eslint-plugin-react-naming-convention": "1.24.0-beta.0",
59
+ "eslint-plugin-react-x": "1.24.0-beta.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "tsup": "^8.3.5",