eslint-plugin-react-debug 5.0.2-next.0 → 5.0.2-next.4
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 +16 -2
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DEFAULT_ESLINT_REACT_SETTINGS, defineRuleListener, getSettingsFromContext
|
|
1
|
+
import { DEFAULT_ESLINT_REACT_SETTINGS, defineRuleListener, getSettingsFromContext } from "@eslint-react/shared";
|
|
2
2
|
import * as core from "@eslint-react/core";
|
|
3
3
|
import { isUseRefCall } from "@eslint-react/core";
|
|
4
4
|
import { AST_NODE_TYPES, ESLintUtils } from "@typescript-eslint/utils";
|
|
@@ -27,7 +27,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
27
27
|
//#endregion
|
|
28
28
|
//#region package.json
|
|
29
29
|
var name$1 = "eslint-plugin-react-debug";
|
|
30
|
-
var version = "5.0.2-next.
|
|
30
|
+
var version = "5.0.2-next.4";
|
|
31
31
|
|
|
32
32
|
//#endregion
|
|
33
33
|
//#region src/utils/create-rule.ts
|
|
@@ -363,6 +363,20 @@ function flow(ab, bc, cd, de, ef, fg, gh, hi, ij) {
|
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
|
|
366
|
+
//#endregion
|
|
367
|
+
//#region src/rules/jsx/lib.ts
|
|
368
|
+
/**
|
|
369
|
+
* Creates a report function for the given rule context.
|
|
370
|
+
* @param context The ESLint rule context.
|
|
371
|
+
* @returns A function that can be used to report violations.
|
|
372
|
+
*/
|
|
373
|
+
function report(context) {
|
|
374
|
+
return (descriptor) => {
|
|
375
|
+
if (descriptor == null) return;
|
|
376
|
+
return context.report(descriptor);
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
|
|
366
380
|
//#endregion
|
|
367
381
|
//#region src/rules/jsx/jsx.ts
|
|
368
382
|
const RULE_NAME = "jsx";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-debug",
|
|
3
|
-
"version": "5.0.2-next.
|
|
3
|
+
"version": "5.0.2-next.4",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for debugging related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -43,22 +43,22 @@
|
|
|
43
43
|
"@typescript-eslint/types": "^8.58.0",
|
|
44
44
|
"@typescript-eslint/utils": "^8.58.0",
|
|
45
45
|
"ts-pattern": "^5.9.0",
|
|
46
|
-
"@eslint-react/
|
|
47
|
-
"@eslint-react/
|
|
48
|
-
"@eslint-react/jsx": "5.0.2-next.
|
|
49
|
-
"@eslint-react/shared": "5.0.2-next.
|
|
50
|
-
"@eslint-react/var": "5.0.2-next.
|
|
46
|
+
"@eslint-react/core": "5.0.2-next.4",
|
|
47
|
+
"@eslint-react/ast": "5.0.2-next.4",
|
|
48
|
+
"@eslint-react/jsx": "5.0.2-next.4",
|
|
49
|
+
"@eslint-react/shared": "5.0.2-next.4",
|
|
50
|
+
"@eslint-react/var": "5.0.2-next.4"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/react": "^19.2.14",
|
|
54
54
|
"@types/react-dom": "^19.2.3",
|
|
55
55
|
"eslint": "^10.2.0",
|
|
56
56
|
"tsdown": "^0.21.7",
|
|
57
|
-
"@local/
|
|
58
|
-
"@local/
|
|
57
|
+
"@local/configs": "0.0.0",
|
|
58
|
+
"@local/eff": "3.0.0-beta.72"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"eslint": "^10.
|
|
61
|
+
"eslint": "^10.2.0",
|
|
62
62
|
"typescript": "*"
|
|
63
63
|
},
|
|
64
64
|
"engines": {
|