Skip to content

Commit

Permalink
fix: add --config option (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
ambar authored and Kent C. Dodds committed Sep 8, 2017
1 parent 795a295 commit d28c5ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ Options:
[default: "./node_modules/eslint"]
--eslint-config-path Path to the eslint config to use for eslint --fix
--prettier-path The path to the prettier module to use
--config Path to the prettier config
[default: "./node_modules/prettier"]
--ignore pattern(s) you wish to ignore (can be used multiple
times and includes **/node_modules/** automatically)
Expand Down
4 changes: 4 additions & 0 deletions src/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ const parser = yargs
describe: 'The path to the prettier module to use',
coerce: coercePath,
},
config: {
default: undefined,
describe: 'Path to the prettier config',
},
ignore: {
describe: oneLine`
pattern(s) you wish to ignore
Expand Down

0 comments on commit d28c5ef

Please sign in to comment.