eslint-plugin-react-web-api 1.52.7-next.1 → 1.52.7
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.d.mts +7 -31
- package/dist/index.d.ts +7 -31
- package/dist/index.js +5 -5
- package/dist/index.mjs +5 -5
- package/package.json +13 -13
package/dist/index.d.mts
CHANGED
|
@@ -1,33 +1,14 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _eslint_react_shared from '@eslint-react/shared';
|
|
2
2
|
import { RulePreset } from '@eslint-react/kit';
|
|
3
3
|
|
|
4
|
-
type MessageID$3 = "expectedClearTimeoutInCleanup" | "expectedClearTimeoutInUnmount" | "expectedTimeoutId";
|
|
5
|
-
|
|
6
|
-
type MessageID$2 = "expectedDisconnectInControlFlow" | "expectedDisconnectOrUnobserveInCleanup" | "unexpectedFloatingInstance";
|
|
7
|
-
|
|
8
|
-
type MessageID$1 = "expectedClearIntervalInCleanup" | "expectedClearIntervalInUnmount" | "expectedIntervalId";
|
|
9
|
-
|
|
10
|
-
type MessageID = "expectedRemoveEventListenerInCleanup" | "expectedRemoveEventListenerInUnmount" | "unexpectedInlineFunction";
|
|
11
|
-
|
|
12
4
|
declare const _default: {
|
|
13
5
|
configs: {
|
|
14
6
|
recommended: {
|
|
15
7
|
plugins: {
|
|
16
|
-
"react-web-api":
|
|
17
|
-
readonly meta: {
|
|
18
|
-
readonly name: string;
|
|
19
|
-
readonly version: string;
|
|
20
|
-
};
|
|
21
|
-
readonly rules: {
|
|
22
|
-
readonly "no-leaked-event-listener": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
23
|
-
readonly "no-leaked-interval": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$1, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
24
|
-
readonly "no-leaked-resize-observer": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$2, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
25
|
-
readonly "no-leaked-timeout": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$3, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
8
|
+
"react-web-api": _eslint_react_shared.CompatiblePlugin;
|
|
28
9
|
};
|
|
29
|
-
name
|
|
30
|
-
rules
|
|
10
|
+
name?: string;
|
|
11
|
+
rules?: Record<string, any>;
|
|
31
12
|
};
|
|
32
13
|
"recommended-legacy": {
|
|
33
14
|
plugins: string[];
|
|
@@ -35,15 +16,10 @@ declare const _default: {
|
|
|
35
16
|
};
|
|
36
17
|
};
|
|
37
18
|
meta: {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
};
|
|
41
|
-
rules: {
|
|
42
|
-
readonly "no-leaked-event-listener": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
43
|
-
readonly "no-leaked-interval": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$1, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
44
|
-
readonly "no-leaked-resize-observer": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$2, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
45
|
-
readonly "no-leaked-timeout": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$3, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
19
|
+
name: string;
|
|
20
|
+
version: string;
|
|
46
21
|
};
|
|
22
|
+
rules: Record<string, any>;
|
|
47
23
|
};
|
|
48
24
|
|
|
49
25
|
export { _default as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,33 +1,14 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _eslint_react_shared from '@eslint-react/shared';
|
|
2
2
|
import { RulePreset } from '@eslint-react/kit';
|
|
3
3
|
|
|
4
|
-
type MessageID$3 = "expectedClearTimeoutInCleanup" | "expectedClearTimeoutInUnmount" | "expectedTimeoutId";
|
|
5
|
-
|
|
6
|
-
type MessageID$2 = "expectedDisconnectInControlFlow" | "expectedDisconnectOrUnobserveInCleanup" | "unexpectedFloatingInstance";
|
|
7
|
-
|
|
8
|
-
type MessageID$1 = "expectedClearIntervalInCleanup" | "expectedClearIntervalInUnmount" | "expectedIntervalId";
|
|
9
|
-
|
|
10
|
-
type MessageID = "expectedRemoveEventListenerInCleanup" | "expectedRemoveEventListenerInUnmount" | "unexpectedInlineFunction";
|
|
11
|
-
|
|
12
4
|
declare const _default: {
|
|
13
5
|
configs: {
|
|
14
6
|
recommended: {
|
|
15
7
|
plugins: {
|
|
16
|
-
"react-web-api":
|
|
17
|
-
readonly meta: {
|
|
18
|
-
readonly name: string;
|
|
19
|
-
readonly version: string;
|
|
20
|
-
};
|
|
21
|
-
readonly rules: {
|
|
22
|
-
readonly "no-leaked-event-listener": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
23
|
-
readonly "no-leaked-interval": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$1, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
24
|
-
readonly "no-leaked-resize-observer": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$2, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
25
|
-
readonly "no-leaked-timeout": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$3, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
8
|
+
"react-web-api": _eslint_react_shared.CompatiblePlugin;
|
|
28
9
|
};
|
|
29
|
-
name
|
|
30
|
-
rules
|
|
10
|
+
name?: string;
|
|
11
|
+
rules?: Record<string, any>;
|
|
31
12
|
};
|
|
32
13
|
"recommended-legacy": {
|
|
33
14
|
plugins: string[];
|
|
@@ -35,15 +16,10 @@ declare const _default: {
|
|
|
35
16
|
};
|
|
36
17
|
};
|
|
37
18
|
meta: {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
};
|
|
41
|
-
rules: {
|
|
42
|
-
readonly "no-leaked-event-listener": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
43
|
-
readonly "no-leaked-interval": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$1, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
44
|
-
readonly "no-leaked-resize-observer": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$2, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
45
|
-
readonly "no-leaked-timeout": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$3, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
19
|
+
name: string;
|
|
20
|
+
version: string;
|
|
46
21
|
};
|
|
22
|
+
rules: Record<string, any>;
|
|
47
23
|
};
|
|
48
24
|
|
|
49
25
|
export { _default as default };
|
package/dist/index.js
CHANGED
|
@@ -57,7 +57,7 @@ var settings = {
|
|
|
57
57
|
|
|
58
58
|
// package.json
|
|
59
59
|
var name2 = "eslint-plugin-react-web-api";
|
|
60
|
-
var version = "1.52.7
|
|
60
|
+
var version = "1.52.7";
|
|
61
61
|
var createRule = utils.ESLintUtils.RuleCreator(shared.getDocsUrl("web-api"));
|
|
62
62
|
function getPhaseKindOfFunction(node) {
|
|
63
63
|
return tsPattern.match(node).when(ER4__namespace.isFunctionOfUseEffectSetup, () => "setup").when(ER4__namespace.isFunctionOfUseEffectCleanup, () => "cleanup").when(ER4__namespace.isFunctionOfComponentDidMount, () => "mount").when(ER4__namespace.isFunctionOfComponentWillUnmount, () => "unmount").otherwise(() => null);
|
|
@@ -732,7 +732,7 @@ var plugin = {
|
|
|
732
732
|
};
|
|
733
733
|
|
|
734
734
|
// src/index.ts
|
|
735
|
-
function
|
|
735
|
+
function toFlatConfig(config) {
|
|
736
736
|
return {
|
|
737
737
|
...config,
|
|
738
738
|
plugins: {
|
|
@@ -740,7 +740,7 @@ function makeConfig(config) {
|
|
|
740
740
|
}
|
|
741
741
|
};
|
|
742
742
|
}
|
|
743
|
-
function
|
|
743
|
+
function toLegacyConfig({ rules: rules2 }) {
|
|
744
744
|
return {
|
|
745
745
|
plugins: ["react-web-api"],
|
|
746
746
|
rules: rules2
|
|
@@ -749,8 +749,8 @@ function makeLegacyConfig({ rules: rules2 }) {
|
|
|
749
749
|
var index_default = {
|
|
750
750
|
...plugin,
|
|
751
751
|
configs: {
|
|
752
|
-
["recommended"]:
|
|
753
|
-
["recommended-legacy"]:
|
|
752
|
+
["recommended"]: toFlatConfig(recommended_exports),
|
|
753
|
+
["recommended-legacy"]: toLegacyConfig(recommended_exports)
|
|
754
754
|
}
|
|
755
755
|
};
|
|
756
756
|
|
package/dist/index.mjs
CHANGED
|
@@ -33,7 +33,7 @@ var settings = {
|
|
|
33
33
|
|
|
34
34
|
// package.json
|
|
35
35
|
var name2 = "eslint-plugin-react-web-api";
|
|
36
|
-
var version = "1.52.7
|
|
36
|
+
var version = "1.52.7";
|
|
37
37
|
var createRule = ESLintUtils.RuleCreator(getDocsUrl("web-api"));
|
|
38
38
|
function getPhaseKindOfFunction(node) {
|
|
39
39
|
return match(node).when(ER4.isFunctionOfUseEffectSetup, () => "setup").when(ER4.isFunctionOfUseEffectCleanup, () => "cleanup").when(ER4.isFunctionOfComponentDidMount, () => "mount").when(ER4.isFunctionOfComponentWillUnmount, () => "unmount").otherwise(() => null);
|
|
@@ -708,7 +708,7 @@ var plugin = {
|
|
|
708
708
|
};
|
|
709
709
|
|
|
710
710
|
// src/index.ts
|
|
711
|
-
function
|
|
711
|
+
function toFlatConfig(config) {
|
|
712
712
|
return {
|
|
713
713
|
...config,
|
|
714
714
|
plugins: {
|
|
@@ -716,7 +716,7 @@ function makeConfig(config) {
|
|
|
716
716
|
}
|
|
717
717
|
};
|
|
718
718
|
}
|
|
719
|
-
function
|
|
719
|
+
function toLegacyConfig({ rules: rules2 }) {
|
|
720
720
|
return {
|
|
721
721
|
plugins: ["react-web-api"],
|
|
722
722
|
rules: rules2
|
|
@@ -725,8 +725,8 @@ function makeLegacyConfig({ rules: rules2 }) {
|
|
|
725
725
|
var index_default = {
|
|
726
726
|
...plugin,
|
|
727
727
|
configs: {
|
|
728
|
-
["recommended"]:
|
|
729
|
-
["recommended-legacy"]:
|
|
728
|
+
["recommended"]: toFlatConfig(recommended_exports),
|
|
729
|
+
["recommended-legacy"]: toLegacyConfig(recommended_exports)
|
|
730
730
|
}
|
|
731
731
|
};
|
|
732
732
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-web-api",
|
|
3
|
-
"version": "1.52.7
|
|
3
|
+
"version": "1.52.7",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for interacting with Web APIs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -43,21 +43,21 @@
|
|
|
43
43
|
"./package.json"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@typescript-eslint/scope-manager": "^8.
|
|
47
|
-
"@typescript-eslint/types": "^8.
|
|
48
|
-
"@typescript-eslint/utils": "^8.
|
|
46
|
+
"@typescript-eslint/scope-manager": "^8.41.0",
|
|
47
|
+
"@typescript-eslint/types": "^8.41.0",
|
|
48
|
+
"@typescript-eslint/utils": "^8.41.0",
|
|
49
49
|
"string-ts": "^2.2.1",
|
|
50
50
|
"ts-pattern": "^5.8.0",
|
|
51
|
-
"@eslint-react/ast": "1.52.7
|
|
52
|
-
"@eslint-react/core": "1.52.7
|
|
53
|
-
"@eslint-react/eff": "1.52.7
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/
|
|
56
|
-
"@eslint-react/
|
|
51
|
+
"@eslint-react/ast": "1.52.7",
|
|
52
|
+
"@eslint-react/core": "1.52.7",
|
|
53
|
+
"@eslint-react/eff": "1.52.7",
|
|
54
|
+
"@eslint-react/kit": "1.52.7",
|
|
55
|
+
"@eslint-react/shared": "1.52.7",
|
|
56
|
+
"@eslint-react/var": "1.52.7"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@types/react": "^19.1.
|
|
60
|
-
"@types/react-dom": "^19.1.
|
|
59
|
+
"@types/react": "^19.1.12",
|
|
60
|
+
"@types/react-dom": "^19.1.9",
|
|
61
61
|
"tsup": "^8.5.0",
|
|
62
62
|
"@local/configs": "0.0.0"
|
|
63
63
|
},
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"access": "public"
|
|
81
81
|
},
|
|
82
82
|
"scripts": {
|
|
83
|
-
"build": "tsup
|
|
83
|
+
"build": "tsup",
|
|
84
84
|
"lint:publish": "publint",
|
|
85
85
|
"lint:ts": "tsc --noEmit"
|
|
86
86
|
}
|