Vue-cli: Separate the Prettier selection from linters setup

Created on 7 Sep 2018  路  2Comments  路  Source: vuejs/vue-cli

What problem does this feature solve?

Prettier is not a linter, it's a code formatter. It can be used together with linters thanks to tslint-config-prettier and eslint-config-prettier. So Prettier selection could be separated from linters selection. Prettier can be used together with any ESLint/TSlint preset.

What does the proposed API look like?

  • Separate linters selection from code formatters selection.
  • Remove: ESLint + Airbnb config and ESLint + Standard config options.
feature request cli

Most helpful comment

Right now ESlint and Prettier are bound with a ESlint + Prettier option. I can't both use Prettier and ESlint Standard config. So I think this is a good advice.

All 2 comments

Right now ESlint and Prettier are bound with a ESlint + Prettier option. I can't both use Prettier and ESlint Standard config. So I think this is a good advice.

Are there any plans to add this feature in upcoming Vue CLI 5.x?

Was this page helpful?
0 / 5 - 0 ratings