@eslint-react/core 1.48.1 → 1.48.2-beta.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.
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -986,7 +986,7 @@ function isReactAPI(api) {
|
|
|
986
986
|
const func = (context, node) => {
|
|
987
987
|
if (node == null) return false;
|
|
988
988
|
const getText = (n) => context.sourceCode.getText(n);
|
|
989
|
-
const name = AST9__namespace.
|
|
989
|
+
const name = AST9__namespace.toString(node, getText);
|
|
990
990
|
if (name === api) return true;
|
|
991
991
|
if (name.substring(name.indexOf(".") + 1) === api) return true;
|
|
992
992
|
return false;
|
package/dist/index.mjs
CHANGED
|
@@ -960,7 +960,7 @@ function isReactAPI(api) {
|
|
|
960
960
|
const func = (context, node) => {
|
|
961
961
|
if (node == null) return false;
|
|
962
962
|
const getText = (n) => context.sourceCode.getText(n);
|
|
963
|
-
const name = AST9.
|
|
963
|
+
const name = AST9.toString(node, getText);
|
|
964
964
|
if (name === api) return true;
|
|
965
965
|
if (name.substring(name.indexOf(".") + 1) === api) return true;
|
|
966
966
|
return false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/core",
|
|
3
|
-
"version": "1.48.
|
|
3
|
+
"version": "1.48.2-beta.0",
|
|
4
4
|
"description": "ESLint React's ESLint utility module for static analysis of React core APIs and patterns.",
|
|
5
5
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"@typescript-eslint/utils": "^8.30.1",
|
|
42
42
|
"birecord": "^0.1.1",
|
|
43
43
|
"ts-pattern": "^5.7.0",
|
|
44
|
-
"@eslint-react/ast": "1.48.
|
|
45
|
-
"@eslint-react/eff": "1.48.
|
|
46
|
-
"@eslint-react/
|
|
47
|
-
"@eslint-react/
|
|
48
|
-
"@eslint-react/
|
|
44
|
+
"@eslint-react/ast": "1.48.2-beta.0",
|
|
45
|
+
"@eslint-react/eff": "1.48.2-beta.0",
|
|
46
|
+
"@eslint-react/shared": "1.48.2-beta.0",
|
|
47
|
+
"@eslint-react/var": "1.48.2-beta.0",
|
|
48
|
+
"@eslint-react/kit": "1.48.2-beta.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"tsup": "^8.4.0",
|