Commit 5c93155
committed
feat!: align the default prettier style with
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)create-vue instead of vue core1 parent d1fe363 commit 5c93155
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
0 commit comments