Skip to content

refactor: use eslint-config-prettier/flat directly#897

Merged
haoqunjiang merged 4 commits intovuejs:mainfrom
haoqunjiang:refactor-eslint-prettier
Jan 20, 2026
Merged

refactor: use eslint-config-prettier/flat directly#897
haoqunjiang merged 4 commits intovuejs:mainfrom
haoqunjiang:refactor-eslint-prettier

Conversation

@haoqunjiang
Copy link
Member

@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.

`@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.
@haoqunjiang haoqunjiang merged commit 41ed812 into vuejs:main Jan 20, 2026
51 checks passed
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