Skip to content

Commit

Permalink
chore(options): replace jsxBracketSameLine with bracketSameLine
Browse files Browse the repository at this point in the history
replace jsxBracketSameLine with bracketSameLine. as of v2.4.0 of
prettier, the former is deprecated for the latter - https://prettier.io/blog/2021/09/09/2.4.0.html#replace-jsxbracketsameline-option-with-bracketsameline-option-11006httpsgithubcomprettierprettierpull11006-by-kurtztechhttpsgithubcomkurtztech

because bracketSameLine is not available until v2.4.0 of prettier,
increment the peer dependency version as well
  • Loading branch information
rwaskiewicz committed Feb 10, 2022
1 parent eb5b9c0 commit e21bb11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
jsxSingleQuote: false,
trailingComma: 'es5',
bracketSpacing: true,
jsxBracketSameLine: false,
bracketSameLine: false,
arrowParens: 'always',
overrides: [
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
},
"homepage": "https://github.com/ionic-team/prettier-config#readme",
"peerDependencies": {
"prettier": "^2.0.0"
"prettier": "^2.4.0"
}
}

0 comments on commit e21bb11

Please sign in to comment.