Skip to content

Commit

Permalink
feat: update prettier options
Browse files Browse the repository at this point in the history
- replace `jsxBracketSameLine` with `bracketSameLine`
   - `jsxBracketSameLine` was deprecated in v2.4.0
- add `embeddedLanguageFormatting` with the default value
   - introduced in v2.1.0.

Documentation changes
- Default value of `arrowParens` changed from avoid to always in v2.0.0
- Default value of `trailingComma` changed from none to es5 in v2.0.0
- Default value of `endOfLine` changed from auto to lf in v2.0.0
  • Loading branch information
gurpreetatwal committed Feb 22, 2022
1 parent 5d64733 commit 2198997
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions prettier.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ module.exports = {
singleQuote: true, // default: false
quoteProps: 'as-needed',
jsxSingleQuote: false,
trailingComma: 'all', // default: none
trailingComma: 'all', // default: es5
bracketSpacing: true,
jsxBracketSameLine: false,
arrowParens: 'avoid',
bracketSameLine: false,
arrowParens: 'avoid', // default: always
proseWrap: 'preserve',
htmlWhitespaceSensitivity: 'css',
vueIndentScriptAndStyle: false,
endOfLine: 'lf', // default: auto
endOfLine: 'lf',
embeddedLanguageFormatting: 'auto',
};

0 comments on commit 2198997

Please sign in to comment.