Skip to content

Commit

Permalink
style: add bin/lint-staged to .lintstagedrc.json
Browse files Browse the repository at this point in the history
  • Loading branch information
iiroj committed Jan 27, 2020
1 parent 7b508f9 commit 0e08e7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .lintstagedrc.json
@@ -1,4 +1,5 @@
{
"bin/lint-staged": ["prettier --write", "npm run lint:base -- --fix"],
"*.{js,json,md}": "prettier --write",
"*.js": "npm run lint:base -- --fix"
}
4 changes: 2 additions & 2 deletions bin/lint-staged
Expand Up @@ -35,7 +35,7 @@ cmdline
'-p, --concurrent <parallel tasks>',
'the number of tasks to run concurrently, or false to run tasks serially',
true
)
)
.option('-q, --quiet', 'disable lint-staged’s own console output', false)
.option('-r, --relative', 'pass relative filepaths to tasks', false)
.option('-x, --shell', 'skip parsing of tasks for better shell support', false)
Expand Down Expand Up @@ -73,7 +73,7 @@ const options = {
maxArgLength: getMaxArgLength() / 2,
quiet: !!cmdline.quiet,
relative: !!cmdline.relative,
shell: !!cmdline.shell,
shell: !!cmdline.shell
}

debug('Options parsed from command-line:', options)
Expand Down

0 comments on commit 0e08e7d

Please sign in to comment.