eslint-plugin-react-debug 1.19.0 → 1.20.0-beta.13
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 +1 -6
- package/dist/index.js +21 -5
- package/dist/index.mjs +21 -5
- package/package.json +15 -12
package/README.md
CHANGED
|
@@ -39,9 +39,4 @@ export default [
|
|
|
39
39
|
|
|
40
40
|
## Rules
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
| :------------------- | :------------------------------------------------------- | :-: | :-: | :-: |
|
|
44
|
-
| `class-component` | Reports all class components. | 🐞 | | |
|
|
45
|
-
| `function-component` | Reports all function components. | 🐞 | | |
|
|
46
|
-
| `hook` | Reports all react hooks. | 🐞 | | |
|
|
47
|
-
| `is-from-react` | Reports all identifiers that are initialized from React. | 🐞 | | |
|
|
42
|
+
<https://eslint-react.xyz/docs/rules/overview#debug-rules>
|
package/dist/index.js
CHANGED
|
@@ -7,17 +7,21 @@ var utils = require('@typescript-eslint/utils');
|
|
|
7
7
|
|
|
8
8
|
// package.json
|
|
9
9
|
var name = "eslint-plugin-react-debug";
|
|
10
|
-
var version = "1.
|
|
10
|
+
var version = "1.20.0-beta.13";
|
|
11
11
|
var createRule = shared.createRuleForPlugin("debug");
|
|
12
12
|
|
|
13
13
|
// src/rules/class-component.ts
|
|
14
14
|
var RULE_NAME = "class-component";
|
|
15
|
+
var RULE_FEATURES = [
|
|
16
|
+
"DBG"
|
|
17
|
+
];
|
|
15
18
|
var class_component_default = createRule({
|
|
16
19
|
meta: {
|
|
17
20
|
type: "problem",
|
|
18
21
|
docs: {
|
|
19
22
|
// eslint-disable-next-line eslint-plugin/require-meta-docs-description
|
|
20
|
-
description: "report all class components, including anonymous ones"
|
|
23
|
+
description: "report all class components, including anonymous ones",
|
|
24
|
+
[Symbol.for("rule_features")]: RULE_FEATURES
|
|
21
25
|
},
|
|
22
26
|
messages: {
|
|
23
27
|
classComponent: "[class component] name: {{name}}."
|
|
@@ -46,12 +50,16 @@ var class_component_default = createRule({
|
|
|
46
50
|
defaultOptions: []
|
|
47
51
|
});
|
|
48
52
|
var RULE_NAME2 = "function-component";
|
|
53
|
+
var RULE_FEATURES2 = [
|
|
54
|
+
"DBG"
|
|
55
|
+
];
|
|
49
56
|
var function_component_default = createRule({
|
|
50
57
|
meta: {
|
|
51
58
|
type: "problem",
|
|
52
59
|
docs: {
|
|
53
60
|
// eslint-disable-next-line eslint-plugin/require-meta-docs-description
|
|
54
|
-
description: "report all function components, including anonymous ones"
|
|
61
|
+
description: "report all function components, including anonymous ones",
|
|
62
|
+
[Symbol.for("rule_features")]: RULE_FEATURES2
|
|
55
63
|
},
|
|
56
64
|
messages: {
|
|
57
65
|
functionComponent: "[function component] name: {{name}}, memo: {{memo}}, forwardRef: {{forwardRef}}, hookCalls: {{hookCalls}}"
|
|
@@ -83,12 +91,16 @@ var function_component_default = createRule({
|
|
|
83
91
|
defaultOptions: []
|
|
84
92
|
});
|
|
85
93
|
var RULE_NAME3 = "hook";
|
|
94
|
+
var RULE_FEATURES3 = [
|
|
95
|
+
"DBG"
|
|
96
|
+
];
|
|
86
97
|
var hook_default = createRule({
|
|
87
98
|
meta: {
|
|
88
99
|
type: "problem",
|
|
89
100
|
docs: {
|
|
90
101
|
// eslint-disable-next-line eslint-plugin/require-meta-docs-description
|
|
91
|
-
description: "report all React Hooks"
|
|
102
|
+
description: "report all React Hooks",
|
|
103
|
+
[Symbol.for("rule_features")]: RULE_FEATURES3
|
|
92
104
|
},
|
|
93
105
|
messages: {
|
|
94
106
|
hook: "[hook] name: {{name}}, hookCalls: {{hookCalls}}."
|
|
@@ -118,12 +130,16 @@ var hook_default = createRule({
|
|
|
118
130
|
defaultOptions: []
|
|
119
131
|
});
|
|
120
132
|
var RULE_NAME4 = "is-from-react";
|
|
133
|
+
var RULE_FEATURES4 = [
|
|
134
|
+
"DBG"
|
|
135
|
+
];
|
|
121
136
|
var is_from_react_default = createRule({
|
|
122
137
|
meta: {
|
|
123
138
|
type: "problem",
|
|
124
139
|
docs: {
|
|
125
140
|
// eslint-disable-next-line eslint-plugin/require-meta-docs-description
|
|
126
|
-
description: "report all identifiers that are initialized from React."
|
|
141
|
+
description: "report all identifiers that are initialized from React.",
|
|
142
|
+
[Symbol.for("rule_features")]: RULE_FEATURES4
|
|
127
143
|
},
|
|
128
144
|
messages: {
|
|
129
145
|
isFromReact: "[initialized from react] name: '{{name}}', import source: '{{importSource}}'."
|
package/dist/index.mjs
CHANGED
|
@@ -5,17 +5,21 @@ import { AST_NODE_TYPES } from '@typescript-eslint/utils';
|
|
|
5
5
|
|
|
6
6
|
// package.json
|
|
7
7
|
var name = "eslint-plugin-react-debug";
|
|
8
|
-
var version = "1.
|
|
8
|
+
var version = "1.20.0-beta.13";
|
|
9
9
|
var createRule = createRuleForPlugin("debug");
|
|
10
10
|
|
|
11
11
|
// src/rules/class-component.ts
|
|
12
12
|
var RULE_NAME = "class-component";
|
|
13
|
+
var RULE_FEATURES = [
|
|
14
|
+
"DBG"
|
|
15
|
+
];
|
|
13
16
|
var class_component_default = createRule({
|
|
14
17
|
meta: {
|
|
15
18
|
type: "problem",
|
|
16
19
|
docs: {
|
|
17
20
|
// eslint-disable-next-line eslint-plugin/require-meta-docs-description
|
|
18
|
-
description: "report all class components, including anonymous ones"
|
|
21
|
+
description: "report all class components, including anonymous ones",
|
|
22
|
+
[Symbol.for("rule_features")]: RULE_FEATURES
|
|
19
23
|
},
|
|
20
24
|
messages: {
|
|
21
25
|
classComponent: "[class component] name: {{name}}."
|
|
@@ -44,12 +48,16 @@ var class_component_default = createRule({
|
|
|
44
48
|
defaultOptions: []
|
|
45
49
|
});
|
|
46
50
|
var RULE_NAME2 = "function-component";
|
|
51
|
+
var RULE_FEATURES2 = [
|
|
52
|
+
"DBG"
|
|
53
|
+
];
|
|
47
54
|
var function_component_default = createRule({
|
|
48
55
|
meta: {
|
|
49
56
|
type: "problem",
|
|
50
57
|
docs: {
|
|
51
58
|
// eslint-disable-next-line eslint-plugin/require-meta-docs-description
|
|
52
|
-
description: "report all function components, including anonymous ones"
|
|
59
|
+
description: "report all function components, including anonymous ones",
|
|
60
|
+
[Symbol.for("rule_features")]: RULE_FEATURES2
|
|
53
61
|
},
|
|
54
62
|
messages: {
|
|
55
63
|
functionComponent: "[function component] name: {{name}}, memo: {{memo}}, forwardRef: {{forwardRef}}, hookCalls: {{hookCalls}}"
|
|
@@ -81,12 +89,16 @@ var function_component_default = createRule({
|
|
|
81
89
|
defaultOptions: []
|
|
82
90
|
});
|
|
83
91
|
var RULE_NAME3 = "hook";
|
|
92
|
+
var RULE_FEATURES3 = [
|
|
93
|
+
"DBG"
|
|
94
|
+
];
|
|
84
95
|
var hook_default = createRule({
|
|
85
96
|
meta: {
|
|
86
97
|
type: "problem",
|
|
87
98
|
docs: {
|
|
88
99
|
// eslint-disable-next-line eslint-plugin/require-meta-docs-description
|
|
89
|
-
description: "report all React Hooks"
|
|
100
|
+
description: "report all React Hooks",
|
|
101
|
+
[Symbol.for("rule_features")]: RULE_FEATURES3
|
|
90
102
|
},
|
|
91
103
|
messages: {
|
|
92
104
|
hook: "[hook] name: {{name}}, hookCalls: {{hookCalls}}."
|
|
@@ -116,12 +128,16 @@ var hook_default = createRule({
|
|
|
116
128
|
defaultOptions: []
|
|
117
129
|
});
|
|
118
130
|
var RULE_NAME4 = "is-from-react";
|
|
131
|
+
var RULE_FEATURES4 = [
|
|
132
|
+
"DBG"
|
|
133
|
+
];
|
|
119
134
|
var is_from_react_default = createRule({
|
|
120
135
|
meta: {
|
|
121
136
|
type: "problem",
|
|
122
137
|
docs: {
|
|
123
138
|
// eslint-disable-next-line eslint-plugin/require-meta-docs-description
|
|
124
|
-
description: "report all identifiers that are initialized from React."
|
|
139
|
+
description: "report all identifiers that are initialized from React.",
|
|
140
|
+
[Symbol.for("rule_features")]: RULE_FEATURES4
|
|
125
141
|
},
|
|
126
142
|
messages: {
|
|
127
143
|
isFromReact: "[initialized from react] name: '{{name}}', import source: '{{importSource}}'."
|
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-debug",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.0-beta.13",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for debugging related rules.",
|
|
5
5
|
"keywords": [
|
|
6
|
+
"react",
|
|
7
|
+
"debug",
|
|
6
8
|
"eslint",
|
|
9
|
+
"eslint-react",
|
|
7
10
|
"eslint-plugin",
|
|
8
|
-
"react"
|
|
9
|
-
"debug"
|
|
11
|
+
"eslint-plugin-react-debug"
|
|
10
12
|
],
|
|
11
13
|
"homepage": "https://github.com/rel1cx/eslint-react",
|
|
12
14
|
"bugs": {
|
|
@@ -46,19 +48,20 @@
|
|
|
46
48
|
"@typescript-eslint/types": "^8.18.0",
|
|
47
49
|
"@typescript-eslint/utils": "^8.18.0",
|
|
48
50
|
"string-ts": "^2.2.0",
|
|
49
|
-
"ts-pattern": "^5.
|
|
50
|
-
"@eslint-react/
|
|
51
|
-
"@eslint-react/
|
|
52
|
-
"@eslint-react/
|
|
53
|
-
"@eslint-react/
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/
|
|
56
|
-
"@eslint-react/var": "1.
|
|
51
|
+
"ts-pattern": "^5.6.0",
|
|
52
|
+
"@eslint-react/ast": "1.20.0-beta.13",
|
|
53
|
+
"@eslint-react/core": "1.20.0-beta.13",
|
|
54
|
+
"@eslint-react/shared": "1.20.0-beta.13",
|
|
55
|
+
"@eslint-react/jsx": "1.20.0-beta.13",
|
|
56
|
+
"@eslint-react/tools": "1.20.0-beta.13",
|
|
57
|
+
"@eslint-react/types": "1.20.0-beta.13",
|
|
58
|
+
"@eslint-react/var": "1.20.0-beta.13"
|
|
57
59
|
},
|
|
58
60
|
"devDependencies": {
|
|
59
61
|
"@types/react": "^19.0.1",
|
|
60
62
|
"@types/react-dom": "^19.0.2",
|
|
61
|
-
"tsup": "^8.3.5"
|
|
63
|
+
"tsup": "^8.3.5",
|
|
64
|
+
"@workspace/configs": "0.0.0"
|
|
62
65
|
},
|
|
63
66
|
"peerDependencies": {
|
|
64
67
|
"eslint": "^8.57.0 || ^9.0.0",
|