eslint-plugin-react-web-api 1.17.4-beta.0 → 1.17.4-beta.10
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 +2 -3
- package/dist/index.mjs +2 -3
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -6,7 +6,6 @@ var JSX = require('@eslint-react/jsx');
|
|
|
6
6
|
var tools = require('@eslint-react/tools');
|
|
7
7
|
var VAR2 = require('@eslint-react/var');
|
|
8
8
|
var utils = require('@typescript-eslint/utils');
|
|
9
|
-
var astUtils = require('@typescript-eslint/utils/ast-utils');
|
|
10
9
|
var tsPattern = require('ts-pattern');
|
|
11
10
|
var shared = require('@eslint-react/shared');
|
|
12
11
|
var types = require('@typescript-eslint/types');
|
|
@@ -35,7 +34,7 @@ var VAR2__namespace = /*#__PURE__*/_interopNamespace(VAR2);
|
|
|
35
34
|
|
|
36
35
|
// package.json
|
|
37
36
|
var name = "eslint-plugin-react-web-api";
|
|
38
|
-
var version = "1.17.4-beta.
|
|
37
|
+
var version = "1.17.4-beta.10";
|
|
39
38
|
var createRule = shared.createRuleForPlugin("web-api");
|
|
40
39
|
function getInstanceID(node, prev) {
|
|
41
40
|
switch (true) {
|
|
@@ -95,7 +94,7 @@ function getOptions(node, initialScope) {
|
|
|
95
94
|
return tools.O.some(value.value);
|
|
96
95
|
}
|
|
97
96
|
default: {
|
|
98
|
-
return
|
|
97
|
+
return VAR2__namespace.getStaticValue(value, initialScope);
|
|
99
98
|
}
|
|
100
99
|
}
|
|
101
100
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -4,14 +4,13 @@ import * as JSX from '@eslint-react/jsx';
|
|
|
4
4
|
import { Data, O, F, or, not, isBoolean } from '@eslint-react/tools';
|
|
5
5
|
import * as VAR2 from '@eslint-react/var';
|
|
6
6
|
import { AST_NODE_TYPES } from '@typescript-eslint/utils';
|
|
7
|
-
import { getStaticValue } from '@typescript-eslint/utils/ast-utils';
|
|
8
7
|
import { match, isMatching, P } from 'ts-pattern';
|
|
9
8
|
import { createRuleForPlugin } from '@eslint-react/shared';
|
|
10
9
|
import { AST_NODE_TYPES as AST_NODE_TYPES$1 } from '@typescript-eslint/types';
|
|
11
10
|
|
|
12
11
|
// package.json
|
|
13
12
|
var name = "eslint-plugin-react-web-api";
|
|
14
|
-
var version = "1.17.4-beta.
|
|
13
|
+
var version = "1.17.4-beta.10";
|
|
15
14
|
var createRule = createRuleForPlugin("web-api");
|
|
16
15
|
function getInstanceID(node, prev) {
|
|
17
16
|
switch (true) {
|
|
@@ -71,7 +70,7 @@ function getOptions(node, initialScope) {
|
|
|
71
70
|
return O.some(value.value);
|
|
72
71
|
}
|
|
73
72
|
default: {
|
|
74
|
-
return
|
|
73
|
+
return VAR2.getStaticValue(value, initialScope);
|
|
75
74
|
}
|
|
76
75
|
}
|
|
77
76
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-web-api",
|
|
3
|
-
"version": "1.17.4-beta.
|
|
3
|
+
"version": "1.17.4-beta.10",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for interacting with Web APIs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -47,17 +47,17 @@
|
|
|
47
47
|
"@typescript-eslint/utils": "^8.17.0",
|
|
48
48
|
"birecord": "^0.1.1",
|
|
49
49
|
"ts-pattern": "^5.5.0",
|
|
50
|
-
"@eslint-react/ast": "1.17.4-beta.
|
|
51
|
-
"@eslint-react/
|
|
52
|
-
"@eslint-react/
|
|
53
|
-
"@eslint-react/
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/
|
|
56
|
-
"@eslint-react/
|
|
50
|
+
"@eslint-react/ast": "1.17.4-beta.10",
|
|
51
|
+
"@eslint-react/core": "1.17.4-beta.10",
|
|
52
|
+
"@eslint-react/tools": "1.17.4-beta.10",
|
|
53
|
+
"@eslint-react/jsx": "1.17.4-beta.10",
|
|
54
|
+
"@eslint-react/shared": "1.17.4-beta.10",
|
|
55
|
+
"@eslint-react/types": "1.17.4-beta.10",
|
|
56
|
+
"@eslint-react/var": "1.17.4-beta.10"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@types/react": "^
|
|
60
|
-
"@types/react-dom": "^
|
|
59
|
+
"@types/react": "^19.0.1",
|
|
60
|
+
"@types/react-dom": "^19.0.1",
|
|
61
61
|
"string-ts": "^2.2.0",
|
|
62
62
|
"tsup": "^8.3.5"
|
|
63
63
|
},
|