Skip to content

feat(kit)!: remove files option from getConfig() and normalize file extensions#1669

Merged
Rel1cx merged 1 commit intomainfrom
feat/kit-simplify-getconfig-api
Mar 30, 2026
Merged

feat(kit)!: remove files option from getConfig() and normalize file extensions#1669
Rel1cx merged 1 commit intomainfrom
feat/kit-simplify-getconfig-api

Conversation

@Rel1cx
Copy link
Copy Markdown
Owner

@Rel1cx Rel1cx commented Mar 30, 2026

BREAKING CHANGE: getConfig() no longer accepts { files?: string[] } options. Users should now specify files at the config array level instead.

Other changes:

  • Added cts extension to default file patterns
  • Removed mjsx and mtsx extensions
  • Normalized extension order to: js,jsx,cjs,mjs,ts,tsx,cts,mts
  • Added name field to returned config object
  • Updated all documentation and examples accordingly

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Perf
  • Docs
  • Test
  • Chore
  • Enhancement
  • New Binding issue #___
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change?

Checklist

  • When resolving issues, they are referenced in the PR's title (e.g fix: remove a typo, closes #___, #___)
  • I have added a convincing reason for adding this feature, if necessary

Other information

…xtensions

BREAKING CHANGE: `getConfig()` no longer accepts `{ files?: string[] }` options.
Users should now specify files at the config array level instead.

Other changes:
- Added `cts` extension to default file patterns
- Removed `mjsx` and `mtsx` extensions
- Normalized extension order to: js,jsx,cjs,mjs,ts,tsx,cts,mts
- Added `name` field to returned config object
- Updated all documentation and examples accordingly
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
eslint-react Ready Ready Preview, Comment Mar 30, 2026 4:29pm

Request Review

@Rel1cx Rel1cx marked this pull request as ready for review March 30, 2026 16:30
@Rel1cx Rel1cx merged commit 492b8b0 into main Mar 30, 2026
18 checks passed
@Rel1cx Rel1cx deleted the feat/kit-simplify-getconfig-api branch March 30, 2026 16:30
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.

1 participant