File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
packages/app/src/app/pages
common/Modals/PreferencesModal/CodeFormatting/Prettier Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ const settings = store =>
2727 vimMode : store . preferences . settings . vimMode ,
2828 lintEnabled : store . preferences . settings . lintEnabled ,
2929 codeMirror : store . preferences . settings . codeMirror ,
30- tabWidth : store . preferences . settings . tabSize || 2 ,
30+ tabWidth : store . preferences . settings . prettierConfig
31+ ? store . preferences . settings . prettierConfig . tabWidth || 2
32+ : 2 ,
3133 } : Settings ) ;
3234
3335type Props = {
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ function Prettier({ store, signals }) {
8888 title = "Trailing commas"
8989 type = "dropdown"
9090 options = { [ 'none' , 'es5' , 'all' ] }
91- { ...bindValue ( 'traillingComma ' ) }
91+ { ...bindValue ( 'trailingComma ' ) }
9292 />
9393 < SubDescription >
9494 Print trailing commas wherever possible.
You can’t perform that action at this time.
0 commit comments