From 82c23ff0d8e367779d64d47ea2edef500c227e09 Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Wed, 5 Aug 2020 19:07:37 +0800 Subject: [PATCH] - npm: Add `eslint-arg` script to avoid `lint-staged` linting all --- package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 2868b0c2..a3006280 100644 --- a/package.json +++ b/package.json @@ -52,6 +52,7 @@ "install-offline": "npm install --prefer-offline --no-audit", "eslint-fix": "eslint --fix --ext js,md,html src", "eslint": "eslint --ext js,html,md .", + "eslint-arg": "eslint --ext js,html,md", "rollup": "rollup -c", "build-by-config": "rollup -c rollup-config.config.js", "prep-no-core-rollup": "run-s build-html build-by-config", @@ -99,9 +100,9 @@ ] }, "lint-staged": { - ".eslintignore": "npm run eslint --", - ".eslintrc.js": "npm run eslint --", - "src/**/*.{js,md,html}": "npm run eslint --" + ".eslintignore": "npm run eslint-arg --", + ".eslintrc.js": "npm run eslint-arg --", + "src/**/*.{js,md,html}": "npm run eslint-arg --" }, "run-if-changed": { "src": "npm run prep-no-eslint",