Skip to content
This repository was archived by the owner on Sep 21, 2019. It is now read-only.

Commit 5c15f79

Browse files
committed
Add prettier option
1 parent e181d38 commit 5c15f79

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/cli.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ import { run } from '.';
99

1010
program
1111
.version('1.0.0')
12+
.option('--arrow-parens <avoid|always>', 'Include parentheses around a sole arrow function parameter.', 'avoid')
13+
.option('--no-bracket-spacing', 'Do not print spaces between brackets.', false)
14+
.option('--jsx-bracket-same-line', 'Put > on the last line instead of at a new line.', false)
15+
.option('--print-width <int>', 'The line length where Prettier will try wrap.', 80)
16+
.option('--prose-wrap <always|never|preserve> How to wrap prose. (markdown)', 'preserve')
17+
.option('--no-semi', 'Do not print semicolons, except at the beginning of lines which may need them', false)
18+
.option('--single-quote', 'Use single quotes instead of double quotes.', false)
19+
.option('--tab-width <int>', 'Number of spaces per indentation level.', 2)
20+
.option('--trailing-comma <none|es5|all>', 'Print trailing commas wherever possible when multi-line.', 'none')
21+
.option('--use-tabs', 'Indent with tabs instead of spaces.', false)
1222
.usage('[options] <filename or glob>')
1323
.command('* <glob>')
1424
.action(globPattern => {

0 commit comments

Comments
 (0)