@eslint-react/eslint-plugin 1.20.1 → 1.20.2-beta.3

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
@@ -70,16 +70,28 @@ export default [
70
70
 
71
71
  ## Presets
72
72
 
73
- ### Flat Config
73
+ ### Bare Bones
74
+
75
+ - **Core** (`core`)\
76
+ Enable rules for `"react"`.
77
+ - **DOM** (`dom`)\
78
+ Enable rules for `"react-dom"`.
79
+ - **Web API** (`web-api`)\
80
+ Enable rules for interacting with Web APIs.
81
+
82
+ ### General Purpose
83
+
84
+ - **Recommended** (`recommended`)\
85
+ Enforce rules that are recommended by ESLint React.\
86
+ _This preset includes the `core`, `dom`, and `web-api` presets._
87
+
88
+ ### TypeScript Specialized
89
+
90
+ - **Recommended TypeScript** (`recommended-typescript`)\
91
+ Same as the `recommended` preset but disables rules that can be covered by TypeScript.
74
92
 
75
- - **recommended**\
76
- Enable rules that are recommended by ESLint React.
77
- - **recommended-typescript**\
78
- Enable rules that are recommended by ESLint React and disable rules that can be covered by TypeScript.\
79
- _This preset includes the `recommended` preset._
80
- - **recommended-type-checked**\
81
- Enable rules that are recommended by ESLint React with additional rules that require type information.\
82
- _This preset includes the `recommended-typescript` preset._
93
+ - **Recommended Type-Checked** (`recommended-type-checked`)\
94
+ Same as the `recommended-typescript` preset but enables additional rules that require type information.
83
95
 
84
96
  [Full Presets List↗](https://eslint-react.xyz/docs/presets)
85
97
 
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 tools = require('@eslint-react/tools');
10
+ var types = require('@eslint-react/types');
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.20.1";
29
+ var version = "1.20.2-beta.3";
30
30
 
31
31
  // src/configs/all.ts
32
32
  var all_exports = {};
@@ -239,7 +239,7 @@ __export(disable_debug_exports, {
239
239
  rules: () => rules5
240
240
  });
241
241
  var name6 = "@eslint-react/disable-debug";
242
- var rules5 = tools.fromEntries(tools.entries(rules4).map(([key]) => [key, "off"]));
242
+ var rules5 = types.fromEntries(types.entries(rules4).map(([key]) => [key, "off"]));
243
243
 
244
244
  // src/configs/disable-dom.ts
245
245
  var disable_dom_exports = {};
@@ -248,7 +248,7 @@ __export(disable_dom_exports, {
248
248
  rules: () => rules6
249
249
  });
250
250
  var name7 = "@eslint-react/disable-dom";
251
- var rules6 = tools.fromEntries(tools.entries(rules2).map(([key]) => [key, "off"]));
251
+ var rules6 = types.fromEntries(types.entries(rules2).map(([key]) => [key, "off"]));
252
252
 
253
253
  // src/configs/disable-type-checked.ts
254
254
  var disable_type_checked_exports = {};
@@ -280,7 +280,7 @@ var plugins5 = {
280
280
 
281
281
  // src/configs/disable-web-api.ts
282
282
  var name9 = "@eslint-react/disable-web-api";
283
- var rules9 = tools.fromEntries(tools.entries(rules8).map(([key]) => [key, "off"]));
283
+ var rules9 = types.fromEntries(types.entries(rules8).map(([key]) => [key, "off"]));
284
284
 
285
285
  // src/configs/off.ts
286
286
  var off_exports = {};
@@ -290,7 +290,7 @@ __export(off_exports, {
290
290
  });
291
291
  var name10 = "@eslint-react/off";
292
292
  var rules10 = {
293
- ...tools.fromEntries(tools.entries(rules3).map(([key]) => [key, "off"])),
293
+ ...types.fromEntries(types.entries(rules3).map(([key]) => [key, "off"])),
294
294
  ...rules7
295
295
  };
296
296
 
@@ -368,7 +368,7 @@ var settings7 = {
368
368
  ...settings6
369
369
  };
370
370
  function transformKeys(obj, transform) {
371
- if (tools.typeOf(obj) !== "object") return obj;
371
+ if (types.typeOf(obj) !== "object") return obj;
372
372
  const res = {};
373
373
  for (const key in obj) {
374
374
  res[transform(key)] = obj[key];
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/tools';
8
+ import { fromEntries, entries, typeOf } from '@eslint-react/types';
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.20.1";
18
+ var version = "1.20.2-beta.3";
19
19
 
20
20
  // src/configs/all.ts
21
21
  var all_exports = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/eslint-plugin",
3
- "version": "1.20.1",
3
+ "version": "1.20.2-beta.3",
4
4
  "description": "The main ESLint plugin of ESLint React. Contains all the rules and presets of ESLint React.",
5
5
  "keywords": [
6
6
  "react",
@@ -50,15 +50,15 @@
50
50
  "@typescript-eslint/type-utils": "^8.18.1",
51
51
  "@typescript-eslint/types": "^8.18.1",
52
52
  "@typescript-eslint/utils": "^8.18.1",
53
- "@eslint-react/shared": "1.20.1",
54
- "eslint-plugin-react-debug": "1.20.1",
55
- "eslint-plugin-react-dom": "1.20.1",
56
- "@eslint-react/tools": "1.20.1",
57
- "@eslint-react/types": "1.20.1",
58
- "eslint-plugin-react-web-api": "1.20.1",
59
- "eslint-plugin-react-hooks-extra": "1.20.1",
60
- "eslint-plugin-react-naming-convention": "1.20.1",
61
- "eslint-plugin-react-x": "1.20.1"
53
+ "@eslint-react/eff": "1.20.2-beta.3",
54
+ "eslint-plugin-react-debug": "1.20.2-beta.3",
55
+ "eslint-plugin-react-dom": "1.20.2-beta.3",
56
+ "@eslint-react/types": "1.20.2-beta.3",
57
+ "@eslint-react/shared": "1.20.2-beta.3",
58
+ "eslint-plugin-react-hooks-extra": "1.20.2-beta.3",
59
+ "eslint-plugin-react-naming-convention": "1.20.2-beta.3",
60
+ "eslint-plugin-react-web-api": "1.20.2-beta.3",
61
+ "eslint-plugin-react-x": "1.20.2-beta.3"
62
62
  },
63
63
  "devDependencies": {
64
64
  "tsup": "^8.3.5",