eslint-plugin-react-debug 5.10.0 → 5.10.2

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -7
  2. package/package.json +10 -10
package/dist/index.js CHANGED
@@ -29,7 +29,7 @@ var __exportAll = (all, no_symbols) => {
29
29
  //#endregion
30
30
  //#region package.json
31
31
  var name$1 = "eslint-plugin-react-debug";
32
- var version = "5.10.0";
32
+ var version = "5.10.2";
33
33
 
34
34
  //#endregion
35
35
  //#region src/utils/create-rule.ts
@@ -140,7 +140,7 @@ var is_from_react_default = createRule({
140
140
  });
141
141
  function create$2(context) {
142
142
  const { importSource } = getSettingsFromContext(context);
143
- function visitorFunction(node) {
143
+ function visit(node) {
144
144
  if (node.parent.type === AST_NODE_TYPES.ImportSpecifier && node.parent.imported === node && node.parent.imported.name === node.parent.local.name) return;
145
145
  const name = node.name;
146
146
  if (!isFromReact(node, context.sourceCode.getScope(node), importSource)) return;
@@ -154,8 +154,8 @@ function create$2(context) {
154
154
  });
155
155
  }
156
156
  return {
157
- Identifier: visitorFunction,
158
- JSXIdentifier: visitorFunction
157
+ Identifier: visit,
158
+ JSXIdentifier: visit
159
159
  };
160
160
  }
161
161
 
@@ -204,7 +204,7 @@ var is_from_ref_default = createRule({
204
204
  defaultOptions: []
205
205
  });
206
206
  function create$1(context) {
207
- function visitorFunction(node) {
207
+ function visit(node) {
208
208
  const refInit = getRefInitNode(context, node, context.sourceCode.getScope(node));
209
209
  if (refInit != null) {
210
210
  const json = stringify({
@@ -219,8 +219,8 @@ function create$1(context) {
219
219
  }
220
220
  }
221
221
  return {
222
- Identifier: visitorFunction,
223
- JSXIdentifier: visitorFunction
222
+ Identifier: visit,
223
+ JSXIdentifier: visit
224
224
  };
225
225
  }
226
226
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-debug",
3
- "version": "5.10.0",
3
+ "version": "5.10.2",
4
4
  "description": "ESLint React's ESLint plugin for debugging related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -37,16 +37,16 @@
37
37
  "dist"
38
38
  ],
39
39
  "dependencies": {
40
- "@typescript-eslint/scope-manager": "^8.62.0",
41
- "@typescript-eslint/types": "^8.62.0",
42
- "@typescript-eslint/utils": "^8.62.0",
40
+ "@typescript-eslint/scope-manager": "^8.62.1",
41
+ "@typescript-eslint/types": "^8.62.1",
42
+ "@typescript-eslint/utils": "^8.62.1",
43
43
  "ts-pattern": "^5.9.0",
44
- "@eslint-react/core": "5.10.0",
45
- "@eslint-react/eslint": "5.10.0",
46
- "@eslint-react/jsx": "5.10.0",
47
- "@eslint-react/ast": "5.10.0",
48
- "@eslint-react/shared": "5.10.0",
49
- "@eslint-react/var": "5.10.0"
44
+ "@eslint-react/ast": "5.10.2",
45
+ "@eslint-react/core": "5.10.2",
46
+ "@eslint-react/eslint": "5.10.2",
47
+ "@eslint-react/jsx": "5.10.2",
48
+ "@eslint-react/shared": "5.10.2",
49
+ "@eslint-react/var": "5.10.2"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/react": "^19.2.17",