eslint-plugin-react-web-api 1.37.4-next.0 → 1.38.0-beta.4
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +4 -4
- package/package.json +8 -7
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
|
|
2
|
-
import { RulePreset } from '@eslint-react/
|
|
2
|
+
import { RulePreset } from '@eslint-react/kit';
|
|
3
3
|
|
|
4
4
|
type MessageID$3 = "expectedClearTimeoutInCleanup" | "expectedClearTimeoutInUnmount" | "expectedTimeoutId";
|
|
5
5
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
|
|
2
|
-
import { RulePreset } from '@eslint-react/
|
|
2
|
+
import { RulePreset } from '@eslint-react/kit';
|
|
3
3
|
|
|
4
4
|
type MessageID$3 = "expectedClearTimeoutInCleanup" | "expectedClearTimeoutInUnmount" | "expectedTimeoutId";
|
|
5
5
|
|
package/dist/index.js
CHANGED
|
@@ -55,8 +55,8 @@ var settings = {
|
|
|
55
55
|
|
|
56
56
|
// package.json
|
|
57
57
|
var name2 = "eslint-plugin-react-web-api";
|
|
58
|
-
var version = "1.
|
|
59
|
-
var createRule = shared.
|
|
58
|
+
var version = "1.38.0-beta.4";
|
|
59
|
+
var createRule = utils.ESLintUtils.RuleCreator(shared.getDocsUrl("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._);
|
|
62
62
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getDocsUrl, DEFAULT_ESLINT_REACT_SETTINGS } from '@eslint-react/shared';
|
|
2
2
|
import * as AST from '@eslint-react/ast';
|
|
3
3
|
import { ERPhaseRelevance, isInstanceIdEqual, getInstanceId, isInversePhase, isFunctionOfUseEffectSetup, isFunctionOfUseEffectCleanup, isFunctionOfComponentDidMount, isFunctionOfComponentWillUnmount } from '@eslint-react/core';
|
|
4
4
|
import { _, or } from '@eslint-react/eff';
|
|
5
5
|
import * as VAR from '@eslint-react/var';
|
|
6
|
-
import { AST_NODE_TYPES } from '@typescript-eslint/utils';
|
|
6
|
+
import { ESLintUtils, AST_NODE_TYPES } from '@typescript-eslint/utils';
|
|
7
7
|
import { match, isMatching, P } from 'ts-pattern';
|
|
8
8
|
|
|
9
9
|
var __defProp = Object.defineProperty;
|
|
@@ -32,8 +32,8 @@ var settings = {
|
|
|
32
32
|
|
|
33
33
|
// package.json
|
|
34
34
|
var name2 = "eslint-plugin-react-web-api";
|
|
35
|
-
var version = "1.
|
|
36
|
-
var createRule =
|
|
35
|
+
var version = "1.38.0-beta.4";
|
|
36
|
+
var createRule = ESLintUtils.RuleCreator(getDocsUrl("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(() => _);
|
|
39
39
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-web-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.38.0-beta.4",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for interacting with Web APIs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -48,12 +48,13 @@
|
|
|
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.
|
|
52
|
-
"@eslint-react/core": "1.
|
|
53
|
-
"@eslint-react/
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/
|
|
56
|
-
"@eslint-react/
|
|
51
|
+
"@eslint-react/ast": "1.38.0-beta.4",
|
|
52
|
+
"@eslint-react/core": "1.38.0-beta.4",
|
|
53
|
+
"@eslint-react/eff": "1.38.0-beta.4",
|
|
54
|
+
"@eslint-react/jsx": "1.38.0-beta.4",
|
|
55
|
+
"@eslint-react/kit": "1.38.0-beta.4",
|
|
56
|
+
"@eslint-react/shared": "1.38.0-beta.4",
|
|
57
|
+
"@eslint-react/var": "1.38.0-beta.4"
|
|
57
58
|
},
|
|
58
59
|
"devDependencies": {
|
|
59
60
|
"@types/react": "^19.0.12",
|