@eslint-react/core 1.22.1 → 1.22.2-next.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/dist/index.d.mts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +2 -3
- package/dist/index.mjs +1 -1
- package/package.json +10 -11
package/dist/index.d.mts
CHANGED
|
@@ -5,7 +5,6 @@ import * as _eslint_react_types from '@eslint-react/types';
|
|
|
5
5
|
import { RuleContext } from '@eslint-react/types';
|
|
6
6
|
import { TSESTree as TSESTree$1 } from '@typescript-eslint/utils';
|
|
7
7
|
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
|
|
8
|
-
import * as birecord from 'birecord';
|
|
9
8
|
import { ESLintReactSettings } from '@eslint-react/shared';
|
|
10
9
|
import { Scope } from '@typescript-eslint/scope-manager';
|
|
11
10
|
import { SyntaxKind } from 'typescript';
|
|
@@ -231,7 +230,7 @@ declare const isUseStateCall: (node: TSESTree.CallExpression, context: Readonly<
|
|
|
231
230
|
declare const isUseSyncExternalStoreCall: (node: TSESTree.CallExpression, context: Readonly<_typescript_eslint_utils_ts_eslint.RuleContext<string, readonly unknown[]>>) => boolean;
|
|
232
231
|
declare const isUseTransitionCall: (node: TSESTree.CallExpression, context: Readonly<_typescript_eslint_utils_ts_eslint.RuleContext<string, readonly unknown[]>>) => boolean;
|
|
233
232
|
|
|
234
|
-
declare const ERPhaseRelevance:
|
|
233
|
+
declare const ERPhaseRelevance: _eslint_react_types.BiRecord<{
|
|
235
234
|
readonly mount: "unmount";
|
|
236
235
|
readonly setup: "cleanup";
|
|
237
236
|
}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import * as _eslint_react_types from '@eslint-react/types';
|
|
|
5
5
|
import { RuleContext } from '@eslint-react/types';
|
|
6
6
|
import { TSESTree as TSESTree$1 } from '@typescript-eslint/utils';
|
|
7
7
|
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
|
|
8
|
-
import * as birecord from 'birecord';
|
|
9
8
|
import { ESLintReactSettings } from '@eslint-react/shared';
|
|
10
9
|
import { Scope } from '@typescript-eslint/scope-manager';
|
|
11
10
|
import { SyntaxKind } from 'typescript';
|
|
@@ -231,7 +230,7 @@ declare const isUseStateCall: (node: TSESTree.CallExpression, context: Readonly<
|
|
|
231
230
|
declare const isUseSyncExternalStoreCall: (node: TSESTree.CallExpression, context: Readonly<_typescript_eslint_utils_ts_eslint.RuleContext<string, readonly unknown[]>>) => boolean;
|
|
232
231
|
declare const isUseTransitionCall: (node: TSESTree.CallExpression, context: Readonly<_typescript_eslint_utils_ts_eslint.RuleContext<string, readonly unknown[]>>) => boolean;
|
|
233
232
|
|
|
234
|
-
declare const ERPhaseRelevance:
|
|
233
|
+
declare const ERPhaseRelevance: _eslint_react_types.BiRecord<{
|
|
235
234
|
readonly mount: "unmount";
|
|
236
235
|
readonly setup: "cleanup";
|
|
237
236
|
}>;
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ var ShortUniqueId = require('short-unique-id');
|
|
|
8
8
|
var tsPattern = require('ts-pattern');
|
|
9
9
|
var shared = require('@eslint-react/shared');
|
|
10
10
|
var VAR = require('@eslint-react/var');
|
|
11
|
-
var
|
|
11
|
+
var types$1 = require('@eslint-react/types');
|
|
12
12
|
|
|
13
13
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
14
|
|
|
@@ -34,7 +34,6 @@ var AST9__namespace = /*#__PURE__*/_interopNamespace(AST9);
|
|
|
34
34
|
var JSX4__namespace = /*#__PURE__*/_interopNamespace(JSX4);
|
|
35
35
|
var ShortUniqueId__default = /*#__PURE__*/_interopDefault(ShortUniqueId);
|
|
36
36
|
var VAR__namespace = /*#__PURE__*/_interopNamespace(VAR);
|
|
37
|
-
var birecord__default = /*#__PURE__*/_interopDefault(birecord);
|
|
38
37
|
|
|
39
38
|
// src/component/component-collector.ts
|
|
40
39
|
function getElementRepresentName(node, context) {
|
|
@@ -641,7 +640,7 @@ function isCleanupFunction(node) {
|
|
|
641
640
|
if (!nearestFunction || !nearestFunctionOfRet) return false;
|
|
642
641
|
return nearestFunction === nearestFunctionOfRet && isSetupFunction(nearestFunction);
|
|
643
642
|
}
|
|
644
|
-
var ERPhaseRelevance =
|
|
643
|
+
var ERPhaseRelevance = types$1.birecord({
|
|
645
644
|
mount: "unmount",
|
|
646
645
|
setup: "cleanup"
|
|
647
646
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import ShortUniqueId from 'short-unique-id';
|
|
|
6
6
|
import { isMatching, P, match } from 'ts-pattern';
|
|
7
7
|
import { normalizeSettings, decodeSettings, unsafeReadSettings } from '@eslint-react/shared';
|
|
8
8
|
import * as VAR from '@eslint-react/var';
|
|
9
|
-
import birecord from '
|
|
9
|
+
import { birecord } from '@eslint-react/types';
|
|
10
10
|
|
|
11
11
|
// src/component/component-collector.ts
|
|
12
12
|
function getElementRepresentName(node, context) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/core",
|
|
3
|
-
"version": "1.22.1",
|
|
3
|
+
"version": "1.22.2-next.1",
|
|
4
4
|
"description": "ESLint React's ESLint utility module for static analysis of React core APIs and Patterns.",
|
|
5
5
|
"homepage": "https://github.com/rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -8,12 +8,11 @@
|
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "https://github.com/Rel1cx/eslint-react",
|
|
11
|
+
"url": "git+https://github.com/Rel1cx/eslint-react.git",
|
|
12
12
|
"directory": "packages/core"
|
|
13
13
|
},
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"author": "Eva1ent<rel1cx@proton.me>",
|
|
16
|
-
"sideEffects": false,
|
|
17
16
|
"exports": {
|
|
18
17
|
".": {
|
|
19
18
|
"import": {
|
|
@@ -28,7 +27,6 @@
|
|
|
28
27
|
"./package.json": "./package.json"
|
|
29
28
|
},
|
|
30
29
|
"main": "dist/index.js",
|
|
31
|
-
"module": "dist/index.mjs",
|
|
32
30
|
"types": "dist/index.d.ts",
|
|
33
31
|
"files": [
|
|
34
32
|
"dist",
|
|
@@ -39,20 +37,21 @@
|
|
|
39
37
|
"@typescript-eslint/type-utils": "^8.18.2",
|
|
40
38
|
"@typescript-eslint/types": "^8.18.2",
|
|
41
39
|
"@typescript-eslint/utils": "^8.18.2",
|
|
42
|
-
"birecord": "^0.1.1",
|
|
43
40
|
"short-unique-id": "^5.2.0",
|
|
44
41
|
"ts-pattern": "^5.6.0",
|
|
45
|
-
"@eslint-react/ast": "1.22.1",
|
|
46
|
-
"@eslint-react/eff": "1.22.1",
|
|
47
|
-
"@eslint-react/
|
|
48
|
-
"@eslint-react/
|
|
49
|
-
"@eslint-react/
|
|
50
|
-
"@eslint-react/var": "1.22.1"
|
|
42
|
+
"@eslint-react/ast": "1.22.2-next.1",
|
|
43
|
+
"@eslint-react/eff": "1.22.2-next.1",
|
|
44
|
+
"@eslint-react/shared": "1.22.2-next.1",
|
|
45
|
+
"@eslint-react/jsx": "1.22.2-next.1",
|
|
46
|
+
"@eslint-react/types": "1.22.2-next.1",
|
|
47
|
+
"@eslint-react/var": "1.22.2-next.1"
|
|
51
48
|
},
|
|
52
49
|
"devDependencies": {
|
|
53
50
|
"tsup": "^8.3.5",
|
|
54
51
|
"@workspace/configs": "0.0.0"
|
|
55
52
|
},
|
|
53
|
+
"sideEffects": false,
|
|
54
|
+
"module": "dist/index.mjs",
|
|
56
55
|
"scripts": {
|
|
57
56
|
"build": "tsup",
|
|
58
57
|
"build:docs": "typedoc",
|