Skip to content

Commit

Permalink
Add eslint-config-path
Browse files Browse the repository at this point in the history
  • Loading branch information
eqyiel committed Jul 3, 2017
1 parent afdf798 commit 8834165
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/format-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ function formatFilesFromArgv({
stdin,
write,
eslintPath,
eslintConfigPath,
prettierPath,
ignore: ignoreGlobs = [],
eslintIgnore: applyEslintIgnore = true,
Expand All @@ -43,6 +44,7 @@ function formatFilesFromArgv({
const prettierESLintOptions = {
logLevel,
eslintPath,
eslintConfigPath,
prettierPath,
prettierLast,
prettierOptions,
Expand Down
9 changes: 6 additions & 3 deletions src/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,12 @@ const parser = yargs
// formats and we'd have to work out `extends` somehow as well.
// I don't know whether ESLint exposes a way to do this...
// Contributions welcome!
// eslintConfigPath: {
// describe: 'Path to the eslint config to use for eslint --fix',
// },
'eslint-config-path': {
type: 'string',
default: undefined,
describe: 'Path to the eslint config to use for eslint --fix',
coerce: coercePath,
},
})
.strict()

Expand Down

0 comments on commit 8834165

Please sign in to comment.