Преглед изворни кода

fix #1681 `lint-staged` no longer supports running scripts defined in package.json.

陈帅 пре 7 година
родитељ
комит
6c1b112a40
2 измењених фајлова са 2 додато и 3 уклоњено
  1. 1 2
      .gitignore
  2. 1 1
      package.json

+ 1 - 2
.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

+ 1 - 1
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": {