eslint-plugin-react-web-api 3.0.0-rc.5 → 4.0.0-beta.1
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/README.md +2 -2
- package/dist/index.js +2 -2
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ npm install --save-dev eslint-plugin-react-web-api
|
|
|
13
13
|
|
|
14
14
|
```ts
|
|
15
15
|
import js from "@eslint/js";
|
|
16
|
-
import
|
|
16
|
+
import reactWebApi from "eslint-plugin-react-web-api";
|
|
17
17
|
import { defineConfig } from "eslint/config";
|
|
18
18
|
import tseslint from "typescript-eslint";
|
|
19
19
|
|
|
@@ -24,7 +24,7 @@ export default defineConfig(
|
|
|
24
24
|
js.configs.recommended,
|
|
25
25
|
tseslint.configs.recommended,
|
|
26
26
|
// Add configs from eslint-plugin-react-web-api
|
|
27
|
-
|
|
27
|
+
reactWebApi.configs.recommended,
|
|
28
28
|
],
|
|
29
29
|
rules: {
|
|
30
30
|
// Put rules you want to override here
|
package/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region package.json
|
|
28
28
|
var name$1 = "eslint-plugin-react-web-api";
|
|
29
|
-
var version = "
|
|
29
|
+
var version = "4.0.0-beta.1";
|
|
30
30
|
|
|
31
31
|
//#endregion
|
|
32
32
|
//#region ../../../.pkgs/eff/dist/index.js
|
|
@@ -581,7 +581,7 @@ function create$1(context) {
|
|
|
581
581
|
const uentries = uEntries.filter((e) => isAssignmentTargetEqual(context, e.observer, id));
|
|
582
582
|
const isDynamic = (node) => node?.type === AST_NODE_TYPES.CallExpression || ast.isConditional(node);
|
|
583
583
|
const isPhaseNode = (node) => node === phaseNode;
|
|
584
|
-
if (oentries.some((e) => !isPhaseNode(ast.
|
|
584
|
+
if (oentries.some((e) => !isPhaseNode(ast.findParent(e.node, or(isDynamic, isPhaseNode))))) {
|
|
585
585
|
context.report({
|
|
586
586
|
messageId: "expectedDisconnectInControlFlow",
|
|
587
587
|
node
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-web-api",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-beta.1",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for interacting with Web APIs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -38,23 +38,23 @@
|
|
|
38
38
|
"./package.json"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@typescript-eslint/scope-manager": "^8.57.
|
|
42
|
-
"@typescript-eslint/types": "^8.57.
|
|
43
|
-
"@typescript-eslint/utils": "^8.57.
|
|
41
|
+
"@typescript-eslint/scope-manager": "^8.57.2",
|
|
42
|
+
"@typescript-eslint/types": "^8.57.2",
|
|
43
|
+
"@typescript-eslint/utils": "^8.57.2",
|
|
44
44
|
"birecord": "^0.1.1",
|
|
45
45
|
"ts-pattern": "^5.9.0",
|
|
46
|
-
"@eslint-react/ast": "
|
|
47
|
-
"@eslint-react/
|
|
48
|
-
"@eslint-react/shared": "
|
|
49
|
-
"@eslint-react/
|
|
46
|
+
"@eslint-react/ast": "4.0.0-beta.1",
|
|
47
|
+
"@eslint-react/var": "4.0.0-beta.1",
|
|
48
|
+
"@eslint-react/shared": "4.0.0-beta.1",
|
|
49
|
+
"@eslint-react/core": "4.0.0-beta.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/react": "^19.2.14",
|
|
53
53
|
"@types/react-dom": "^19.2.3",
|
|
54
|
-
"eslint": "^10.0
|
|
55
|
-
"tsdown": "^0.21.
|
|
56
|
-
"@local/
|
|
57
|
-
"@local/
|
|
54
|
+
"eslint": "^10.1.0",
|
|
55
|
+
"tsdown": "^0.21.4",
|
|
56
|
+
"@local/configs": "0.0.0",
|
|
57
|
+
"@local/eff": "3.0.0-beta.72"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"eslint": "^10.0.0",
|