Skip to content

Commit c70e1fe

Browse files
authored
refactor: move plugins & rules related utils to 'kit' package (#1011)
1 parent ccbecc0 commit c70e1fe

File tree

1,024 files changed

+539
-175187
lines changed

Some content is hidden

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

1,024 files changed

+539
-175187
lines changed

.github/CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions

.pkgs/eslint-plugin-local/dist/index.d.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
22

3-
type MessageID = "unexpectedComparison" | "useLooseComparisonSuggestion";
4-
53
declare const _default: {
64
readonly meta: {
75
readonly name: string;
@@ -10,7 +8,7 @@ declare const _default: {
108
readonly rules: {
119
readonly "avoid-multiline-template-expression": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidMultilineTemplateExpression", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
1210
readonly "no-shadow-underscore": _typescript_eslint_utils_ts_eslint.RuleModule<"noShadowUnderscore", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
13-
readonly "prefer-eqeq-nullish-comparison": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
11+
readonly "prefer-eqeq-nullish-comparison": _typescript_eslint_utils_ts_eslint.RuleModule<"unexpectedComparison" | "useLooseComparisonSuggestion", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
1412
};
1513
};
1614

.pkgs/eslint-plugin-local/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"dependencies": {
2424
"@eslint-react/ast": "workspace:*",
2525
"@eslint-react/eff": "workspace:*",
26+
"@eslint-react/kit": "workspace:*",
2627
"@eslint-react/shared": "workspace:*",
2728
"@eslint-react/var": "workspace:*",
2829
"@eslint/js": "^9.23.0",

.pkgs/eslint-plugin-local/src/rules/avoid-multiline-template-expression.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, RuleFeature } from "@eslint-react/shared";
2+
import type { RuleContext, RuleFeature } from "@eslint-react/kit";
33
import type { RuleListener } from "@typescript-eslint/utils/ts-eslint";
44
import type { CamelCase } from "string-ts";
55

.pkgs/eslint-plugin-local/src/rules/no-shadow-underscore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { RuleContext, RuleFeature } from "@eslint-react/shared";
1+
import type { RuleContext, RuleFeature } from "@eslint-react/kit";
22
import type { TSESTree } from "@typescript-eslint/types";
33
import type { RuleListener } from "@typescript-eslint/utils/ts-eslint";
44
import type { CamelCase } from "string-ts";

.pkgs/eslint-plugin-local/src/rules/prefer-eqeq-nullish-comparison.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Ported from: https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin-internal/src/rules/eqeq-nullish.ts
22

3-
import type { RuleContext, RuleFeature } from "@eslint-react/shared";
3+
import type { RuleContext, RuleFeature } from "@eslint-react/kit";
44
import { AST_NODE_TYPES as T } from "@typescript-eslint/utils";
55
import { nullThrows, NullThrowsReasons, type RuleListener } from "@typescript-eslint/utils/eslint-utils";
66

apps/website/content/docs/faq.mdx

Lines changed: 1 addition & 0 deletions

apps/website/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
},
3030
"devDependencies": {
3131
"@eslint-react/eslint-plugin": "workspace:*",
32+
"@eslint-react/kit": "workspace:*",
3233
"@eslint-react/shared": "workspace:*",
3334
"@eslint/js": "^9.23.0",
3435
"@eslint/markdown": "^6.3.0",

examples/vite-react-dom-with-ts-blank-eslint-parser-app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
},
1717
"devDependencies": {
1818
"@eslint-react/eslint-plugin": "workspace:*",
19+
"@eslint-react/kit": "workspace:*",
1920
"@eslint-react/shared": "workspace:*",
2021
"@eslint/config-inspector": "^1.0.2",
2122
"@eslint/js": "^9.23.0",

packages/core/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"@eslint-react/ast": "workspace:*",
4646
"@eslint-react/eff": "workspace:*",
4747
"@eslint-react/jsx": "workspace:*",
48+
"@eslint-react/kit": "workspace:*",
4849
"@eslint-react/shared": "workspace:*",
4950
"@eslint-react/var": "workspace:*",
5051
"@typescript-eslint/scope-manager": "^8.27.0",

0 commit comments

Comments
 (0)