-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat: deprecate tseslint.config() #11531
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
feat: deprecate tseslint.config() #11531
Conversation
|
Thanks for the PR, @kirkwaiblinger! typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community. The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately. Thanks again! 🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint. |
✅ Deploy Preview for typescript-eslint ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
View your CI Pipeline Execution ↗ for commit 1576c1f
☁️ Nx Cloud last updated this comment at |
JoshuaKGoldberg
left a comment
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.
Always nice to see a formatter issue filed as a result of docs work 😅
Great stuff!
Co-authored-by: Josh Goldberg ✨ <git@joshuakgoldberg.com>
Co-authored-by: Josh Goldberg ✨ <git@joshuakgoldberg.com>
Josh-Cena
left a comment
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.
LGTM
|
is the |
|
Migration guide for deprecated |
This isn't directly related to this PR, and we anyways try to avoid commenting on closed PRs (docs). Would you mind reaching out to us with one of the methods in the contributing guide to continue the conversation? Thanks! |

Important
If you've come across this PR looking for info on migrating off of
tseslint.config(), please see https://typescript-eslint.io/packages/typescript-eslint#migrating-to-defineconfigPR Checklist
Overview
tseslint.config()in the docs everywhere withdefineConfig()/** @deprecated */totseslint.config().defineConfig()Questions
defineConfig(a, b, c)ordefineConfig([a, b, c])style? The eslint docs (inexplicably) usedefineConfig([a, b, c])throughout, butdefineConfig(a, b, c)is much better in a TS context since each argument's type is checked individually. I've gone with that approach for now, but we can change to match their style if we want.