From 201182a28d94e888d87a12bf05ca78a6a583d119 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iiro=20J=C3=A4ppinen?= Date: Mon, 27 Jan 2020 18:48:34 +0200 Subject: [PATCH] style: add bin/lint-staged to .lintstagedrc.json --- .lintstagedrc.json | 1 + bin/lint-staged | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.lintstagedrc.json b/.lintstagedrc.json index 37184e8d6..67b64f04c 100644 --- a/.lintstagedrc.json +++ b/.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" } diff --git a/bin/lint-staged b/bin/lint-staged index ee642b279..aadfe16f8 100755 --- a/bin/lint-staged +++ b/bin/lint-staged @@ -35,7 +35,7 @@ cmdline '-p, --concurrent ', '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) @@ -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)