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

feat: unflag TypeScript config files #19266

Merged
merged 1 commit into from
Dec 27, 2024
Merged

feat: unflag TypeScript config files #19266

merged 1 commit into from
Dec 27, 2024

Conversation

fasttime
Copy link
Member

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.

  • TypeScript config loading is now always enabled.
  • The lookup logic for default config files was updated to always include .ts, .mts and .cts extensions.
  • The experimental feature flag ts_config_lookup was moved to inactive.
  • Updated documentation.

Is there anything you'd like reviewers to focus on?

@eslint-github-bot eslint-github-bot bot added the feature This change adds a new feature to ESLint label Dec 21, 2024
@github-actions github-actions bot added cli Relates to ESLint's command-line interface core Relates to ESLint's core APIs and features labels Dec 21, 2024
Copy link

netlify bot commented Dec 21, 2024

Deploy Preview for docs-eslint ready!

Name Link
🔨 Latest commit 46000ac
🔍 Latest deploy log https://app.netlify.com/sites/docs-eslint/deploys/67673895251560000819725d
😎 Deploy Preview https://deploy-preview-19266--docs-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@fasttime fasttime marked this pull request as ready for review December 22, 2024 10:29
@fasttime fasttime requested a review from a team as a code owner December 22, 2024 10:29
@fasttime fasttime added the accepted There is consensus among the team that this change meets the criteria for inclusion label Dec 22, 2024
@@ -335,6 +335,15 @@ describe("ESLint", () => {

processStub.restore();
});

it("should throw an error if the flag 'unstable_ts_config' is used", () => {
Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member

@mdjermanovic mdjermanovic left a 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.

@aladdin-add aladdin-add merged commit 8efc2d0 into main Dec 27, 2024
30 checks passed
@aladdin-add aladdin-add deleted the stable-ts-config branch December 27, 2024 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion cli Relates to ESLint's command-line interface core Relates to ESLint's core APIs and features feature This change adds a new feature to ESLint
Projects
Status: Complete
Development

Successfully merging this pull request may close these issues.

3 participants