eslint-plugin-react-web-api 1.37.1-beta.3 → 1.37.1-beta.5
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 +5 -5
- package/dist/index.mjs +5 -5
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -55,7 +55,7 @@ var settings = {
|
|
|
55
55
|
|
|
56
56
|
// package.json
|
|
57
57
|
var name2 = "eslint-plugin-react-web-api";
|
|
58
|
-
var version = "1.37.1-beta.
|
|
58
|
+
var version = "1.37.1-beta.5";
|
|
59
59
|
var createRule = shared.createRuleForPlugin("web-api");
|
|
60
60
|
function getPhaseKindOfFunction(node) {
|
|
61
61
|
return tsPattern.match(node).when(core.isFunctionOfUseEffectSetup, () => "setup").when(core.isFunctionOfUseEffectCleanup, () => "cleanup").when(core.isFunctionOfComponentDidMount, () => "mount").when(core.isFunctionOfComponentWillUnmount, () => "unmount").otherwise(() => eff._);
|
|
@@ -145,7 +145,7 @@ var no_leaked_event_listener_default = createRule({
|
|
|
145
145
|
meta: {
|
|
146
146
|
type: "problem",
|
|
147
147
|
docs: {
|
|
148
|
-
description: "
|
|
148
|
+
description: "Prevents leaked `addEventListener` in a component or custom Hook.",
|
|
149
149
|
[Symbol.for("rule_features")]: RULE_FEATURES
|
|
150
150
|
},
|
|
151
151
|
messages: {
|
|
@@ -306,7 +306,7 @@ var no_leaked_interval_default = createRule({
|
|
|
306
306
|
meta: {
|
|
307
307
|
type: "problem",
|
|
308
308
|
docs: {
|
|
309
|
-
description: "
|
|
309
|
+
description: "Prevents leaked `setInterval` in a component or custom Hook.",
|
|
310
310
|
[Symbol.for("rule_features")]: RULE_FEATURES2
|
|
311
311
|
},
|
|
312
312
|
messages: {
|
|
@@ -454,7 +454,7 @@ var no_leaked_resize_observer_default = createRule({
|
|
|
454
454
|
meta: {
|
|
455
455
|
type: "problem",
|
|
456
456
|
docs: {
|
|
457
|
-
description: "
|
|
457
|
+
description: "Prevents leaked `ResizeObserver` in a component or custom Hook.",
|
|
458
458
|
[Symbol.for("rule_features")]: RULE_FEATURES3
|
|
459
459
|
},
|
|
460
460
|
messages: {
|
|
@@ -597,7 +597,7 @@ var no_leaked_timeout_default = createRule({
|
|
|
597
597
|
meta: {
|
|
598
598
|
type: "problem",
|
|
599
599
|
docs: {
|
|
600
|
-
description: "
|
|
600
|
+
description: "Prevents leaked `setTimeout` in a component or custom Hook.",
|
|
601
601
|
[Symbol.for("rule_features")]: RULE_FEATURES4
|
|
602
602
|
},
|
|
603
603
|
messages: {
|
package/dist/index.mjs
CHANGED
|
@@ -32,7 +32,7 @@ var settings = {
|
|
|
32
32
|
|
|
33
33
|
// package.json
|
|
34
34
|
var name2 = "eslint-plugin-react-web-api";
|
|
35
|
-
var version = "1.37.1-beta.
|
|
35
|
+
var version = "1.37.1-beta.5";
|
|
36
36
|
var createRule = createRuleForPlugin("web-api");
|
|
37
37
|
function getPhaseKindOfFunction(node) {
|
|
38
38
|
return match(node).when(isFunctionOfUseEffectSetup, () => "setup").when(isFunctionOfUseEffectCleanup, () => "cleanup").when(isFunctionOfComponentDidMount, () => "mount").when(isFunctionOfComponentWillUnmount, () => "unmount").otherwise(() => _);
|
|
@@ -122,7 +122,7 @@ var no_leaked_event_listener_default = createRule({
|
|
|
122
122
|
meta: {
|
|
123
123
|
type: "problem",
|
|
124
124
|
docs: {
|
|
125
|
-
description: "
|
|
125
|
+
description: "Prevents leaked `addEventListener` in a component or custom Hook.",
|
|
126
126
|
[Symbol.for("rule_features")]: RULE_FEATURES
|
|
127
127
|
},
|
|
128
128
|
messages: {
|
|
@@ -283,7 +283,7 @@ var no_leaked_interval_default = createRule({
|
|
|
283
283
|
meta: {
|
|
284
284
|
type: "problem",
|
|
285
285
|
docs: {
|
|
286
|
-
description: "
|
|
286
|
+
description: "Prevents leaked `setInterval` in a component or custom Hook.",
|
|
287
287
|
[Symbol.for("rule_features")]: RULE_FEATURES2
|
|
288
288
|
},
|
|
289
289
|
messages: {
|
|
@@ -431,7 +431,7 @@ var no_leaked_resize_observer_default = createRule({
|
|
|
431
431
|
meta: {
|
|
432
432
|
type: "problem",
|
|
433
433
|
docs: {
|
|
434
|
-
description: "
|
|
434
|
+
description: "Prevents leaked `ResizeObserver` in a component or custom Hook.",
|
|
435
435
|
[Symbol.for("rule_features")]: RULE_FEATURES3
|
|
436
436
|
},
|
|
437
437
|
messages: {
|
|
@@ -574,7 +574,7 @@ var no_leaked_timeout_default = createRule({
|
|
|
574
574
|
meta: {
|
|
575
575
|
type: "problem",
|
|
576
576
|
docs: {
|
|
577
|
-
description: "
|
|
577
|
+
description: "Prevents leaked `setTimeout` in a component or custom Hook.",
|
|
578
578
|
[Symbol.for("rule_features")]: RULE_FEATURES4
|
|
579
579
|
},
|
|
580
580
|
messages: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-web-api",
|
|
3
|
-
"version": "1.37.1-beta.
|
|
3
|
+
"version": "1.37.1-beta.5",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for interacting with Web APIs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
"@typescript-eslint/utils": "^8.27.0",
|
|
49
49
|
"string-ts": "^2.2.1",
|
|
50
50
|
"ts-pattern": "^5.6.2",
|
|
51
|
-
"@eslint-react/ast": "1.37.1-beta.
|
|
52
|
-
"@eslint-react/
|
|
53
|
-
"@eslint-react/
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/
|
|
56
|
-
"@eslint-react/
|
|
51
|
+
"@eslint-react/ast": "1.37.1-beta.5",
|
|
52
|
+
"@eslint-react/jsx": "1.37.1-beta.5",
|
|
53
|
+
"@eslint-react/shared": "1.37.1-beta.5",
|
|
54
|
+
"@eslint-react/var": "1.37.1-beta.5",
|
|
55
|
+
"@eslint-react/core": "1.37.1-beta.5",
|
|
56
|
+
"@eslint-react/eff": "1.37.1-beta.5"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/react": "^19.0.12",
|