-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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: unflag TypeScript config files #19266
Conversation
✅ Deploy Preview for docs-eslint ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -335,6 +335,15 @@ describe("ESLint", () => { | |||
|
|||
processStub.restore(); | |||
}); | |||
|
|||
it("should throw an error if the flag 'unstable_ts_config' is used", () => { |
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.
[question]: Is it more reasonable to regard it as a warning?
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.
Inactive flags would raise a warning before #18705 but now they throw errors because that makes it easier to track down problems. The drawback is that users will have to remove the flag for ESLint to keep working after the next update.
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, thanks! Leaving open for a second review.
Prerequisites checklist
What is the purpose of this pull request? (put an "X" next to an item)
[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofix to a rule
[ ] Add a CLI option
[X] Add something to the core
[ ] Other, please explain:
What changes did you make? (Give an overview)
This PR marks support for TypeScript config files as a stable feature as discussed in the 2024-12-12 TSC meeting.
.ts
,.mts
and.cts
extensions.ts_config_lookup
was moved to inactive.Is there anything you'd like reviewers to focus on?