mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
build: add eslint --cache file
Currently, doing a `git commit` is a bit low, as eslint runs before the commit. Adding an `eslint --cache` makes it slightly faster. On my PC, `git commit` currently is `Done in 12.24s.` However, after adding this cache file, it is `Done in 7.54s.`, so about 1.6x faster.
This commit is contained in:
parent
cde3a7cf70
commit
b7f9495a14
5
.gitignore
vendored
5
.gitignore
vendored
@ -22,4 +22,7 @@ Gemfile.lock
|
||||
/.vs
|
||||
|
||||
cypress/screenshots/
|
||||
cypress/snapshots/
|
||||
cypress/snapshots/
|
||||
|
||||
# eslint --cache file
|
||||
.eslintcache
|
||||
|
@ -27,7 +27,7 @@
|
||||
"postbuild": "documentation build src/mermaidAPI.js src/config.js src/defaultConfig.js --shallow -f md --markdown-toc false > docs/Setup.md",
|
||||
"build:watch": "yarn build:development --watch",
|
||||
"release": "yarn build",
|
||||
"lint": "eslint ./ --ext .js,.json,.html,.md",
|
||||
"lint": "eslint --cache ./ --ext .js,.json,.html,.md",
|
||||
"lint:fix": "yarn lint --fix",
|
||||
"e2e:depr": "yarn lint && jest e2e --config e2e/jest.config.js",
|
||||
"cypress": "cypress run",
|
||||
|
Loading…
x
Reference in New Issue
Block a user