From 6c1b112a40782f00f9c4ad04dd914ea6808c74c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Fri, 15 Jun 2018 21:52:57 +0800 Subject: [PATCH] fix #1681 `lint-staged` no longer supports running scripts defined in package.json. --- .gitignore | 3 +-- package.json | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 4770ad5a..59a03667 100755 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,7 @@ _roadhog-api-doc # production /dist -/vscode +/.vscode # misc .DS_Store @@ -21,4 +21,3 @@ yarn.lock package-lock.json *bak jsconfig.json -.vscode/settings.json diff --git a/package.json b/package.json index e35bfe5e..4c810773 100755 --- a/package.json +++ b/package.json @@ -89,7 +89,7 @@ "prettier --write", "git add" ], - "**/*.{js,jsx}": "lint-staged:js", + "**/*.{js,jsx}": "npm run lint-staged:js", "**/*.less": "stylelint --syntax less" }, "engines": { -- GitLab