Browse Source

chore: speed up eslint

tophf 3 years ago
parent
commit
7de6a238a8
2 changed files with 2 additions and 1 deletions
  1. 1 0
      .gitignore
  2. 1 1
      package.json

+ 1 - 0
.gitignore

@@ -4,3 +4,4 @@ node_modules/
 /stats.json
 /stats.json
 /tmp/
 /tmp/
 /dist-assets/
 /dist-assets/
+.eslintcache

+ 1 - 1
package.json

@@ -12,7 +12,7 @@
     "i18n": "gulp i18n",
     "i18n": "gulp i18n",
     "copyI18n": "gulp copyI18n",
     "copyI18n": "gulp copyI18n",
     "lint": "run-s lint:js lint:yml",
     "lint": "run-s lint:js lint:yml",
-    "lint:js": "eslint --ext .js,.vue .",
+    "lint:js": "eslint --ext .js,.vue . --cache",
     "lint:yml": "gulp check",
     "lint:yml": "gulp check",
     "svgo": "plaid svgo",
     "svgo": "plaid svgo",
     "test": "cross-env BABEL_ENV=test jest test",
     "test": "cross-env BABEL_ENV=test jest test",