@eslint-react/eslint-plugin 1.24.0-beta.3 → 1.24.0-beta.5
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 +37 -28
- package/dist/index.mjs +33 -24
- package/package.json +9 -10
package/dist/index.js
CHANGED
|
@@ -7,7 +7,6 @@ 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 eff = require('@eslint-react/eff');
|
|
11
10
|
|
|
12
11
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
12
|
|
|
@@ -26,7 +25,7 @@ var __export = (target, all) => {
|
|
|
26
25
|
|
|
27
26
|
// package.json
|
|
28
27
|
var name = "@eslint-react/eslint-plugin";
|
|
29
|
-
var version = "1.24.0-beta.
|
|
28
|
+
var version = "1.24.0-beta.5";
|
|
30
29
|
|
|
31
30
|
// src/configs/all.ts
|
|
32
31
|
var all_exports = {};
|
|
@@ -236,8 +235,40 @@ __export(disable_debug_exports, {
|
|
|
236
235
|
name: () => name6,
|
|
237
236
|
rules: () => rules5
|
|
238
237
|
});
|
|
238
|
+
|
|
239
|
+
// src/utils/entries.ts
|
|
240
|
+
function entries(...args) {
|
|
241
|
+
return Object.entries(args);
|
|
242
|
+
}
|
|
243
|
+
function fromEntries(...args) {
|
|
244
|
+
return Object.fromEntries(args);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
// src/utils/type-of.ts
|
|
248
|
+
function typeOf(t) {
|
|
249
|
+
return Object.prototype.toString.call(t).replace(/^\[object (.+)\]$/, "$1").toLowerCase();
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
// src/utils/transform-keys.ts
|
|
253
|
+
function transformKeys(obj, transform) {
|
|
254
|
+
if (typeOf(obj) !== "object") {
|
|
255
|
+
return obj;
|
|
256
|
+
}
|
|
257
|
+
const res = {};
|
|
258
|
+
for (const key in obj) {
|
|
259
|
+
res[transform(key)] = obj[key];
|
|
260
|
+
}
|
|
261
|
+
return res;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
// src/utils/pad-keys-left.ts
|
|
265
|
+
function padKeysLeft(obj, left) {
|
|
266
|
+
return transformKeys(obj, (key) => `${left}${key}`);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
// src/configs/disable-debug.ts
|
|
239
270
|
var name6 = "@eslint-react/disable-debug";
|
|
240
|
-
var rules5 =
|
|
271
|
+
var rules5 = fromEntries(entries(rules4).map(([key]) => [key, "off"]));
|
|
241
272
|
|
|
242
273
|
// src/configs/disable-dom.ts
|
|
243
274
|
var disable_dom_exports = {};
|
|
@@ -246,7 +277,7 @@ __export(disable_dom_exports, {
|
|
|
246
277
|
rules: () => rules6
|
|
247
278
|
});
|
|
248
279
|
var name7 = "@eslint-react/disable-dom";
|
|
249
|
-
var rules6 =
|
|
280
|
+
var rules6 = fromEntries(entries(rules2).map(([key]) => [key, "off"]));
|
|
250
281
|
|
|
251
282
|
// src/configs/disable-type-checked.ts
|
|
252
283
|
var disable_type_checked_exports = {};
|
|
@@ -278,7 +309,7 @@ var plugins5 = {
|
|
|
278
309
|
|
|
279
310
|
// src/configs/disable-web-api.ts
|
|
280
311
|
var name9 = "@eslint-react/disable-web-api";
|
|
281
|
-
var rules9 =
|
|
312
|
+
var rules9 = fromEntries(entries(rules8).map(([key]) => [key, "off"]));
|
|
282
313
|
|
|
283
314
|
// src/configs/off.ts
|
|
284
315
|
var off_exports = {};
|
|
@@ -288,7 +319,7 @@ __export(off_exports, {
|
|
|
288
319
|
});
|
|
289
320
|
var name10 = "@eslint-react/off";
|
|
290
321
|
var rules10 = {
|
|
291
|
-
...
|
|
322
|
+
...fromEntries(entries(rules3).map(([key]) => [key, "off"])),
|
|
292
323
|
...rules7
|
|
293
324
|
};
|
|
294
325
|
|
|
@@ -366,28 +397,6 @@ var settings7 = {
|
|
|
366
397
|
...settings6
|
|
367
398
|
};
|
|
368
399
|
|
|
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
|
|
375
|
-
function transformKeys(obj, transform) {
|
|
376
|
-
if (typeOf(obj) !== "object") {
|
|
377
|
-
return obj;
|
|
378
|
-
}
|
|
379
|
-
const res = {};
|
|
380
|
-
for (const key in obj) {
|
|
381
|
-
res[transform(key)] = obj[key];
|
|
382
|
-
}
|
|
383
|
-
return res;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
// src/utils/pad-keys-left.ts
|
|
387
|
-
function padKeysLeft(obj, left) {
|
|
388
|
-
return transformKeys(obj, (key) => `${left}${key}`);
|
|
389
|
-
}
|
|
390
|
-
|
|
391
400
|
// src/index.ts
|
|
392
401
|
function makeLegacyConfig(config) {
|
|
393
402
|
const { name: drop, ...rest } = config;
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,6 @@ 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 } from '@eslint-react/eff';
|
|
9
8
|
|
|
10
9
|
var __defProp = Object.defineProperty;
|
|
11
10
|
var __export = (target, all) => {
|
|
@@ -15,7 +14,7 @@ var __export = (target, all) => {
|
|
|
15
14
|
|
|
16
15
|
// package.json
|
|
17
16
|
var name = "@eslint-react/eslint-plugin";
|
|
18
|
-
var version = "1.24.0-beta.
|
|
17
|
+
var version = "1.24.0-beta.5";
|
|
19
18
|
|
|
20
19
|
// src/configs/all.ts
|
|
21
20
|
var all_exports = {};
|
|
@@ -225,6 +224,38 @@ __export(disable_debug_exports, {
|
|
|
225
224
|
name: () => name6,
|
|
226
225
|
rules: () => rules5
|
|
227
226
|
});
|
|
227
|
+
|
|
228
|
+
// src/utils/entries.ts
|
|
229
|
+
function entries(...args) {
|
|
230
|
+
return Object.entries(args);
|
|
231
|
+
}
|
|
232
|
+
function fromEntries(...args) {
|
|
233
|
+
return Object.fromEntries(args);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
// src/utils/type-of.ts
|
|
237
|
+
function typeOf(t) {
|
|
238
|
+
return Object.prototype.toString.call(t).replace(/^\[object (.+)\]$/, "$1").toLowerCase();
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
// src/utils/transform-keys.ts
|
|
242
|
+
function transformKeys(obj, transform) {
|
|
243
|
+
if (typeOf(obj) !== "object") {
|
|
244
|
+
return obj;
|
|
245
|
+
}
|
|
246
|
+
const res = {};
|
|
247
|
+
for (const key in obj) {
|
|
248
|
+
res[transform(key)] = obj[key];
|
|
249
|
+
}
|
|
250
|
+
return res;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
// src/utils/pad-keys-left.ts
|
|
254
|
+
function padKeysLeft(obj, left) {
|
|
255
|
+
return transformKeys(obj, (key) => `${left}${key}`);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
// src/configs/disable-debug.ts
|
|
228
259
|
var name6 = "@eslint-react/disable-debug";
|
|
229
260
|
var rules5 = fromEntries(entries(rules4).map(([key]) => [key, "off"]));
|
|
230
261
|
|
|
@@ -355,28 +386,6 @@ var settings7 = {
|
|
|
355
386
|
...settings6
|
|
356
387
|
};
|
|
357
388
|
|
|
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
|
|
364
|
-
function transformKeys(obj, transform) {
|
|
365
|
-
if (typeOf(obj) !== "object") {
|
|
366
|
-
return obj;
|
|
367
|
-
}
|
|
368
|
-
const res = {};
|
|
369
|
-
for (const key in obj) {
|
|
370
|
-
res[transform(key)] = obj[key];
|
|
371
|
-
}
|
|
372
|
-
return res;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
// src/utils/pad-keys-left.ts
|
|
376
|
-
function padKeysLeft(obj, left) {
|
|
377
|
-
return transformKeys(obj, (key) => `${left}${key}`);
|
|
378
|
-
}
|
|
379
|
-
|
|
380
389
|
// src/index.ts
|
|
381
390
|
function makeLegacyConfig(config) {
|
|
382
391
|
const { name: drop, ...rest } = config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "1.24.0-beta.
|
|
3
|
+
"version": "1.24.0-beta.5",
|
|
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",
|
|
@@ -48,15 +48,14 @@
|
|
|
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.24.0-beta.
|
|
52
|
-
"@eslint-react/shared": "1.24.0-beta.
|
|
53
|
-
"
|
|
54
|
-
"eslint-plugin-react-
|
|
55
|
-
"eslint-plugin-react-
|
|
56
|
-
"eslint-plugin-react-
|
|
57
|
-
"eslint-plugin-react-
|
|
58
|
-
"eslint-plugin-react-web-api": "1.24.0-beta.
|
|
59
|
-
"eslint-plugin-react-x": "1.24.0-beta.3"
|
|
51
|
+
"@eslint-react/eff": "1.24.0-beta.5",
|
|
52
|
+
"@eslint-react/shared": "1.24.0-beta.5",
|
|
53
|
+
"eslint-plugin-react-debug": "1.24.0-beta.5",
|
|
54
|
+
"eslint-plugin-react-dom": "1.24.0-beta.5",
|
|
55
|
+
"eslint-plugin-react-hooks-extra": "1.24.0-beta.5",
|
|
56
|
+
"eslint-plugin-react-naming-convention": "1.24.0-beta.5",
|
|
57
|
+
"eslint-plugin-react-x": "1.24.0-beta.5",
|
|
58
|
+
"eslint-plugin-react-web-api": "1.24.0-beta.5"
|
|
60
59
|
},
|
|
61
60
|
"devDependencies": {
|
|
62
61
|
"tsup": "^8.3.5",
|