Skip to content

Commit

Permalink
fix(prettier): update configuration to latest
Browse files Browse the repository at this point in the history
Updates Prettier configuration to latest version, where a few deprecated
options have been renamed.

This also changes some defaults, so remember to re-run:

    yarn d2-style apply

And commit the results with for example:

    style(format): apply latest code style
  • Loading branch information
varl committed Sep 20, 2021
1 parent a3f06bc commit b40f6e7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions config/prettier.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@ module.exports = {
useTabs: false,
semi: false,
singleQuote: true,
quoteProps: 'as-needed',
jsxSingleQuote: false,
trailingComma: 'es5',
bracketSpacing: true,
jsxBracketSameLine: false,
jsxSingleQuote: false,
arrowParens: 'avoid',
bracketSameLine: false,
arrowParens: 'always',
rangeStart: 0,
rangeEnd: Infinity,
proseWrap: 'preserve',
requirePragma: false,
insertPragma: false,
proseWrap: 'preserve',
htmlWhitespaceSensitivity: 'css',
endOfLine: 'lf',
embeddedLanguageFormatting: 'auto',
}

0 comments on commit b40f6e7

Please sign in to comment.