refactor: use eslint-config-prettier/flat directly#897
Merged
haoqunjiang merged 4 commits intovuejs:mainfrom Jan 20, 2026
Merged
refactor: use eslint-config-prettier/flat directly#897haoqunjiang merged 4 commits intovuejs:mainfrom
eslint-config-prettier/flat directly#897haoqunjiang merged 4 commits intovuejs:mainfrom
Conversation
`@vue/eslint-config-prettier` is a somewhat legacy/transitional package that allows users to choose from two ways of running the formatting process: via the ESLint command, or by running a separate command. Since we've switched to `skipFormatting` a while ago, most people are likely already used to this workflow and don't need the `prettier/prettier` rule from `eslint-plugin-prettier` anymore. So I'd like to extend directly from the upstream `eslint-config-prettier` to reduce dependencies. Furthermore, `eslint-config-prettier` doesn't *require* prettier as a peer dependency, which means the same template can be used for oxfmt in the future, providing a smoother transition experience.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@vue/eslint-config-prettieris a somewhat legacy/transitional package that allows users to choose from two ways of running the formatting process: via the ESLint command, or by running a separate command.Since we've switched to
skipFormattinga while ago, most people are likely already used to this workflow and don't need theprettier/prettierrule fromeslint-plugin-prettieranymore. So I'd like to extend directly from the upstreameslint-config-prettierto reduce dependencies. Furthermore,eslint-config-prettierdoesn't require prettier as a peer dependency, which means the same template can be used for oxfmt in the future, providing a smoother transition experience.