eslint-plugin-react-debug 2.0.7-next.2 → 2.1.0-next.0

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 +2 -3
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -37,7 +37,7 @@ const settings = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
37
37
  //#endregion
38
38
  //#region package.json
39
39
  var name = "eslint-plugin-react-debug";
40
- var version = "2.0.7-next.2";
40
+ var version = "2.1.0-next.0";
41
41
 
42
42
  //#endregion
43
43
  //#region src/utils/create-rule.ts
@@ -184,8 +184,7 @@ function create$1(context) {
184
184
  function visitorFunction(node) {
185
185
  if (node.parent.type === AST_NODE_TYPES.ImportSpecifier && node.parent.imported === node && node.parent.imported.name === node.parent.local.name) return;
186
186
  const name$2 = node.name;
187
- const initialScope = context.sourceCode.getScope(node);
188
- if (!isFromReact(node, importSource, initialScope)) return;
187
+ if (!isFromReact(node, importSource, context.sourceCode.getScope(node))) return;
189
188
  context.report({
190
189
  messageId: "isFromReact",
191
190
  node,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-debug",
3
- "version": "2.0.7-next.2",
3
+ "version": "2.1.0-next.0",
4
4
  "description": "ESLint React's ESLint plugin for debugging related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -41,16 +41,16 @@
41
41
  "@typescript-eslint/utils": "^8.46.0",
42
42
  "string-ts": "^2.2.1",
43
43
  "ts-pattern": "^5.8.0",
44
- "@eslint-react/ast": "2.0.7-next.2",
45
- "@eslint-react/core": "2.0.7-next.2",
46
- "@eslint-react/kit": "2.0.7-next.2",
47
- "@eslint-react/shared": "2.0.7-next.2",
48
- "@eslint-react/var": "2.0.7-next.2",
49
- "@eslint-react/eff": "2.0.7-next.2"
44
+ "@eslint-react/ast": "2.1.0-next.0",
45
+ "@eslint-react/core": "2.1.0-next.0",
46
+ "@eslint-react/eff": "2.1.0-next.0",
47
+ "@eslint-react/kit": "2.1.0-next.0",
48
+ "@eslint-react/shared": "2.1.0-next.0",
49
+ "@eslint-react/var": "2.1.0-next.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@types/react": "^19.2.0",
53
- "@types/react-dom": "^19.2.0",
52
+ "@types/react": "^19.2.2",
53
+ "@types/react-dom": "^19.2.1",
54
54
  "tsdown": "^0.15.6",
55
55
  "@local/configs": "0.0.0"
56
56
  },