Skip to content

Commit

Permalink
fix: Strip out all non prettier options from arguments
Browse files Browse the repository at this point in the history
This was forwarding non prettier options to prettier now that prettier-eslint handle incoming prettier options properly.
  • Loading branch information
zimme committed Dec 4, 2017
1 parent 663ce74 commit 38a45ba
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/format-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,30 @@ export default formatFilesFromArgv;

function formatFilesFromArgv({
_: fileGlobs,
$0: _$0,
help: _help,
h: _help_,
version: _version,
logLevel = logger.getLevel(),
"log-level": _logLevel,
l: _logLevelAlias,
listDifferent,
"list-different": _listDifferent,
stdin,
stdinFilepath,
"stdin-filepath": _stdinFilepath,
write,
eslintPath,
"eslint-path": _eslintPath,
prettierPath,
"prettier-path": _prettierPath,
ignore: ignoreGlobs = [],
eslintIgnore: applyEslintIgnore = true,
"eslint-ignore": _eslintIgnore,
eslintConfigPath,
"eslint-config-path": _eslintConfigPath,
prettierLast,
"prettier-last": _prettierLast,
...prettierOptions
}) {
logger.setLevel(logLevel);
Expand Down

0 comments on commit 38a45ba

Please sign in to comment.