Skip to content

Commit dee75af

Browse files
committed
prettier: Set parser to "flow", for Flow enums, as instructed by a doc
1 parent ac860c2 commit dee75af

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.prettierrc.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ module.exports = {
1010
// jsxBracketSameLine: true,
1111

1212
printWidth: 100,
13-
parser: 'babel-flow',
13+
14+
// Changed to "flow" just because Flow claims it's necessary for
15+
// formatting Flow enums. Unconfirmed…but it doesn't seem to hurt. Doc:
16+
// https://flow.org/en/docs/enums/enabling-enums/#toc-upgrade-tooling
17+
parser: 'flow',
18+
1419
singleQuote: true,
1520
trailingComma: 'all',
1621
arrowParens: 'avoid',

0 commit comments

Comments
 (0)