From 38a45bad27a78933121658a15052a97638d81c26 Mon Sep 17 00:00:00 2001 From: Simon Fridlund Date: Mon, 4 Dec 2017 02:15:45 +0100 Subject: [PATCH] fix: Strip out all non prettier options from arguments This was forwarding non prettier options to prettier now that prettier-eslint handle incoming prettier options properly. --- src/format-files.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/format-files.js b/src/format-files.js index 3d183a2..1c5c82f 100644 --- a/src/format-files.js +++ b/src/format-files.js @@ -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);