Skip to content

feat(prettier): generate prettier.config.{js,ts} instead of .prettierrc#1145

Draft
jycouet wants to merge 1 commit into
mainfrom
prettier-autocompletition
Draft

feat(prettier): generate prettier.config.{js,ts} instead of .prettierrc#1145
jycouet wants to merge 1 commit into
mainfrom
prettier-autocompletition

Conversation

@jycouet

@jycouet jycouet commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Closes #1095

Description

Replaces the .prettierrc JSON file with a generated prettier.config.{js,ts} (TS when the project uses TypeScript, JS with a JSDoc @type otherwise), giving type-checked config and editor autocompletion.

  • tailwindcss augments the JS/TS config (plugin + tailwindStylesheet) when prettier was added first.
  • Note: prettier loads a .ts config via Node's type stripping, which is on by default on Node >=22.18.

Checklist

  • Update snapshots (if applicable)
  • Add a changeset (if applicable)
  • Allow maintainers to edit this PR
  • I care about what I'm doing, no matter the tool I use (Notepad, Sublime, VSCode, AI...)

…`.prettierrc`, giving type-checked config and editor autocompletion
@changeset-bot

changeset-bot Bot commented Jun 20, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 174c41a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
sv Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@svelte-docs-bot

Copy link
Copy Markdown

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.

prettier autocompletition

1 participant