eslint-plugin-react-web-api 2.0.0-next.169 → 2.0.0-next.170
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 +3 -6
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import * as ER from "@eslint-react/core";
|
|
|
4
4
|
import { or, unit } from "@eslint-react/eff";
|
|
5
5
|
import * as VAR from "@eslint-react/var";
|
|
6
6
|
import { AST_NODE_TYPES, ESLintUtils } from "@typescript-eslint/utils";
|
|
7
|
+
import { getStaticValue } from "@typescript-eslint/utils/ast-utils";
|
|
7
8
|
import { P, isMatching, match } from "ts-pattern";
|
|
8
9
|
import { AST_NODE_TYPES as AST_NODE_TYPES$1 } from "@typescript-eslint/types";
|
|
9
10
|
|
|
@@ -36,7 +37,7 @@ const settings = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
|
|
|
36
37
|
//#endregion
|
|
37
38
|
//#region package.json
|
|
38
39
|
var name = "eslint-plugin-react-web-api";
|
|
39
|
-
var version = "2.0.0-next.
|
|
40
|
+
var version = "2.0.0-next.170";
|
|
40
41
|
|
|
41
42
|
//#endregion
|
|
42
43
|
//#region src/utils/create-rule.ts
|
|
@@ -110,11 +111,7 @@ function getOptions(node, initialScope) {
|
|
|
110
111
|
v = value.value;
|
|
111
112
|
break;
|
|
112
113
|
default:
|
|
113
|
-
v =
|
|
114
|
-
kind: "lazy",
|
|
115
|
-
node: value,
|
|
116
|
-
initialScope
|
|
117
|
-
}).value;
|
|
114
|
+
v = getStaticValue(value, initialScope)?.value;
|
|
118
115
|
break;
|
|
119
116
|
}
|
|
120
117
|
return filter(v) ? v : unit;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-web-api",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.170",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for interacting with Web APIs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"@typescript-eslint/utils": "^8.42.0",
|
|
41
41
|
"string-ts": "^2.2.1",
|
|
42
42
|
"ts-pattern": "^5.8.0",
|
|
43
|
-
"@eslint-react/ast": "2.0.0-next.
|
|
44
|
-
"@eslint-react/
|
|
45
|
-
"@eslint-react/
|
|
46
|
-
"@eslint-react/
|
|
47
|
-
"@eslint-react/kit": "2.0.0-next.
|
|
48
|
-
"@eslint-react/
|
|
43
|
+
"@eslint-react/ast": "2.0.0-next.170",
|
|
44
|
+
"@eslint-react/core": "2.0.0-next.170",
|
|
45
|
+
"@eslint-react/eff": "2.0.0-next.170",
|
|
46
|
+
"@eslint-react/var": "2.0.0-next.170",
|
|
47
|
+
"@eslint-react/kit": "2.0.0-next.170",
|
|
48
|
+
"@eslint-react/shared": "2.0.0-next.170"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/react": "^19.1.12",
|