Skip to content

Commit d28c5ef

Browse files
ambarKent C. Dodds
authored andcommitted
fix: add --config option (#104)
1 parent 795a295 commit d28c5ef

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ Options:
9898
[default: "./node_modules/eslint"]
9999
--eslint-config-path Path to the eslint config to use for eslint --fix
100100
--prettier-path The path to the prettier module to use
101+
--config Path to the prettier config
101102
[default: "./node_modules/prettier"]
102103
--ignore pattern(s) you wish to ignore (can be used multiple
103104
times and includes **/node_modules/** automatically)

src/parser.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ const parser = yargs
5858
describe: 'The path to the prettier module to use',
5959
coerce: coercePath,
6060
},
61+
config: {
62+
default: undefined,
63+
describe: 'Path to the prettier config',
64+
},
6165
ignore: {
6266
describe: oneLine`
6367
pattern(s) you wish to ignore

0 commit comments

Comments
 (0)