Skip to content
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

infra: Add type-safety to ESLint config #167

Merged
merged 3 commits into from
Oct 24, 2023
Merged

Conversation

WarningImHack3r
Copy link
Member

Self-explanatory, use JSDoc & @types/eslint to use type-checking in the config. Found out in create-t3-app.

Note

This PR is "optional" because the config will change in ESLint v9 so we will have to rework the config anyway at that time. However, I don't know whether this JSDoc + @types/eslint technique will still work the same in v9.
We can choose between 2 PRs and potential reverted changes in v9 or 1 PR that we will also bring type-safety in.

@WarningImHack3r WarningImHack3r requested a review from a team as a code owner October 24, 2023 21:53
@WarningImHack3r WarningImHack3r merged commit 01346d3 into main Oct 24, 2023
5 checks passed
@WarningImHack3r WarningImHack3r deleted the eslint-config-types branch October 24, 2023 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants