Skip to content

Commit

Permalink
refactor(config): Remove redundant options to align with schemastore …
Browse files Browse the repository at this point in the history
…defaults

Also fixes the regression introduced in 1d657db
that the standard prettier config omits `"trailingComma": "none"` and
got an extraneous printWidth option.
  • Loading branch information
Anton Lilleby authored and haoqunjiang committed Oct 25, 2024
1 parent 5c93155 commit 2378e2f
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions templates/_prettierrc.json.ejs
Original file line number Diff line number Diff line change
@@ -1,28 +1,16 @@
<%_ if (styleGuide === 'airbnb') { _%>
{
"$schema": "https://json.schemastore.org/prettierrc",
"arrowParens": "always",
"bracketSameLine": false,
"bracketSpacing": true,
"endOfLine": "lf",
"jsxSingleQuote": false,
"printWidth": 100,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"useTabs": false
"singleQuote": true
}
<%_ } else if (styleGuide === 'standard') { _%>
{
"$schema": "https://json.schemastore.org/prettierrc",
"semi": false,
"tabWidth": 2,
"singleQuote": true,
"printWidth": 100,
"trailingComma": "all"
"jsxSingleQuote": true,
"trailingComma": "none"
}
<%_ } else { _%>
<%#
Expand Down

0 comments on commit 2378e2f

Please sign in to comment.