Explorar o código

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

陈帅 %!s(int64=7) %!d(string=hai) anos
pai
achega
6c1b112a40
Modificáronse 2 ficheiros con 2 adicións e 3 borrados
  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": {