Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: align the default prettier style with
create-vue
instead of …
…vue core After all, `vuejs/core` is more of a TypeScript project than a Vue project. I feel that we really need `printWidth: 100` for templates. And `arrowParens` isn't that important. Let's use the default value. Moreover, as stated in [prettier's documentation](https://prettier.io/docs/en/options#arrow-function-parentheses), `arrowParens: "always"` is better for adding type annotations, extra arguments or default values as well as making other changes. I believe that `arrowParens: "avoid"` is set in `vuejs/core` only because it started using prettier in its 1.x era and want to avoid too drastic style changes. vuejs/core#3926 (comment)
- Loading branch information