@eslint-react/eslint-plugin 1.20.2-beta.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/dist/index.js +7 -7
- package/dist/index.mjs +2 -2
- package/package.json +10 -10
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
|
|
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.2-beta.
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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
|
-
...
|
|
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 (
|
|
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/
|
|
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.2-beta.
|
|
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.2-beta.
|
|
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/
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"eslint-
|
|
57
|
-
"eslint-
|
|
58
|
-
"eslint-plugin-react-
|
|
59
|
-
"eslint-plugin-react-
|
|
60
|
-
"eslint-plugin-react-web-api": "1.20.2-beta.
|
|
61
|
-
"eslint-plugin-react-x": "1.20.2-beta.
|
|
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",
|