Skip to content

Commit 08b38f3

Browse files
authored
refactor: merge '@eslint-react/types' into '@eslint-react/shared' (#918)
1 parent 8618a64 commit 08b38f3

File tree

146 files changed

+267
-606
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+267
-606
lines changed

.github/CONTRIBUTING.md

Lines changed: 1 addition & 2 deletions

packages/core/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
"@eslint-react/eff": "workspace:*",
4545
"@eslint-react/jsx": "workspace:*",
4646
"@eslint-react/shared": "workspace:*",
47-
"@eslint-react/types": "workspace:*",
4847
"@eslint-react/var": "workspace:*",
4948
"@typescript-eslint/scope-manager": "^8.19.1",
5049
"@typescript-eslint/type-utils": "^8.19.1",

packages/core/src/component/component-collector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import * as AST from "@eslint-react/ast";
33
import { _ } from "@eslint-react/eff";
44
import * as JSX from "@eslint-react/jsx";
5-
import type { RuleContext } from "@eslint-react/types";
5+
import type { RuleContext } from "@eslint-react/shared";
66
import type { TSESTree } from "@typescript-eslint/types";
77
import { AST_NODE_TYPES as T } from "@typescript-eslint/types";
88
import type { ESLintUtils } from "@typescript-eslint/utils";

packages/core/src/component/component-id.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as AST from "@eslint-react/ast";
22
import { _ } from "@eslint-react/eff";
3-
import type { RuleContext } from "@eslint-react/types";
3+
import type { RuleContext } from "@eslint-react/shared";
44
import type { TSESTree } from "@typescript-eslint/types";
55
import { AST_NODE_TYPES as T } from "@typescript-eslint/types";
66

packages/core/src/component/misc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type * as AST from "@eslint-react/ast";
2-
import type { RuleContext } from "@eslint-react/types";
2+
import type { RuleContext } from "@eslint-react/shared";
33

44
import { getFunctionComponentIdentifier } from "./component-id";
55
import { isComponentName } from "./component-name";

packages/core/src/element/element-name.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as JSX from "@eslint-react/jsx";
2-
import type { CustomComponentNormalized } from "@eslint-react/shared";
3-
import type { RuleContext } from "@eslint-react/types";
2+
import type { CustomComponentNormalized, RuleContext } from "@eslint-react/shared";
43
import * as VAR from "@eslint-react/var";
54
import type { TSESTree } from "@typescript-eslint/types";
65

packages/core/src/element/hierarchy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as AST from "@eslint-react/ast";
2-
import type { RuleContext } from "@eslint-react/types";
2+
import type { RuleContext } from "@eslint-react/shared";
33
import type { TSESTree } from "@typescript-eslint/types";
44
import { AST_NODE_TYPES as T } from "@typescript-eslint/types";
55

packages/core/src/hook/is.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as AST from "@eslint-react/ast";
22
import { _, flip, returnFalse } from "@eslint-react/eff";
3+
import type { RuleContext } from "@eslint-react/shared";
34
import { unsafeDecodeSettings } from "@eslint-react/shared";
4-
import type { RuleContext } from "@eslint-react/types";
55
import type { TSESTree } from "@typescript-eslint/types";
66
import { AST_NODE_TYPES as T } from "@typescript-eslint/types";
77

packages/core/src/render-prop/is.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as AST from "@eslint-react/ast";
22
import * as JSX from "@eslint-react/jsx";
3-
import type { RuleContext } from "@eslint-react/types";
3+
import type { RuleContext } from "@eslint-react/shared";
44
import type { TSESTree } from "@typescript-eslint/types";
55
import { AST_NODE_TYPES as T } from "@typescript-eslint/types";
66

packages/core/src/utils/is-from-react.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as AST from "@eslint-react/ast";
22
import { dual } from "@eslint-react/eff";
3+
import type { RuleContext } from "@eslint-react/shared";
34
import { unsafeDecodeSettings } from "@eslint-react/shared";
4-
import type { RuleContext } from "@eslint-react/types";
55
import type { TSESTree } from "@typescript-eslint/types";
66
import { AST_NODE_TYPES as T } from "@typescript-eslint/types";
77

0 commit comments

Comments
 (0)