File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ export default function createConfig({
106106
107107 const templateData = {
108108 styleGuide,
109+ needsPrettier,
109110 fileExtensions,
110111 configsBeforeVuePlugin,
111112 configsAfterVuePlugin,
Original file line number Diff line number Diff line change @@ -4,12 +4,13 @@ indent_size = 2
44indent_style = space
55insert_final_newline = true
66trim_trailing_whitespace = true
7- <% _ if (styleGuide === ' airbnb' ) { _% >
8- < % # // standard doesn't have an opinion on line endings
7+ <% _ if (styleGuide !== ' standard' || needsPrettier) { _% >
8+ < % #
9+ // standard doesn't have an opinion on line endings
910// https://github.com/standard/standard/issues/140
1011// or maximum line length
1112// https://github.com/standard/standard/issues/1559
12- // so we only configure them for airbnb style
13+ // Prettier enforces these things, though.
1314% >
1415end_of_line = lf
1516max_line_length = 100
You can’t perform that action at this time.
0 commit comments