-
Notifications
You must be signed in to change notification settings - Fork 7.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: update eslint type #4032
Conversation
|
WalkthroughThe recent changes in the linting configuration code mainly revolve around type modifications. Functions and variables have transitioned from returning or defining Changes
Sequence Diagram(s)sequenceDiagram
participant A as User
participant B as Linter
participant C as Config
A->>B: Request linting with custom config
B->>C: Validate config type
C-->>B: Return validated config
B-->>A: Lint results
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (4)
- internal/lint-configs/eslint-config/src/configs/jsonc.ts (2 hunks)
- internal/lint-configs/eslint-config/src/configs/test.ts (1 hunks)
- internal/lint-configs/eslint-config/src/custom-config.ts (1 hunks)
- internal/lint-configs/eslint-config/src/index.ts (1 hunks)
Additional comments not posted (5)
internal/lint-configs/eslint-config/src/index.ts (1)
24-24
: Update type alias toLinter.Config
.The type alias
FlatConfig
has been updated fromLinter.FlatConfig
toLinter.Config
. Ensure that this change is compatible with the rest of the codebase and that all references toFlatConfig
are correctly updated.internal/lint-configs/eslint-config/src/configs/test.ts (1)
Line range hint
8-8
:
Removal of TypeScript error suppression comment.The
// @ts-expect-error - no types
comment has been removed, promoting stricter type checking. Ensure that the merged rules frompluginTest
andpluginNoOnlyTests
do not introduce type errors.internal/lint-configs/eslint-config/src/custom-config.ts (1)
9-9
: Update type definition toLinter.Config[]
.The type definition of the
customConfig
variable has been updated fromLinter.FlatConfig[]
toLinter.Config[]
. Ensure that this change is compatible with the rest of the codebase and that all references tocustomConfig
are correctly updated.internal/lint-configs/eslint-config/src/configs/jsonc.ts (2)
Line range hint
54-80
:
LGTM! Verify compatibility with the new return type.The return type has been updated from
Linter.FlatConfig
toLinter.Config
to align with the deprecation. Ensure that the new return type is compatible with the rest of the codebase.
Line range hint
133-193
:
LGTM! Verify compatibility with the new return type.The return type has been updated from
Linter.FlatConfig
toLinter.Config
to align with the deprecation. Ensure that the new return type is compatible with the rest of the codebase.
Description
Eslint.FlatConfig
is deprecated.Type of change
Please delete options that are not relevant.
pnpm-lock.yaml
unless you introduce a new test example.Checklist
pnpm run docs:dev
command.pnpm test
.feat:
,fix:
,perf:
,docs:
, orchore:
.Summary by CodeRabbit
Bug Fixes
Changes