Skip to content

Commit a4fb762

Browse files
authored
chore: add linter and formatter cache (element-plus#9738)
1 parent b296dd0 commit a4fb762

File tree

4 files changed

+4
-72
lines changed

4 files changed

+4
-72
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ packages/element-plus/version.ts
1515

1616
# local env files
1717
*.local
18+
.eslintcache
1819
cypress/screenshots/*
1920
cypress/videos/*
2021
tmp

.husky/pre-commit

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22
. "$(dirname "$0")/_/husky.sh"
33

44
pnpm exec lint-staged
5-
pnpm exec pretty-quick --staged

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
"clean:dist": "rimraf dist",
2222
"build": "pnpm run -C internal/build start",
2323
"build:theme": "pnpm run -C packages/theme-chalk build",
24-
"format": "prettier --write .",
25-
"lint": "eslint . --ext .vue,.js,.ts,.jsx,.tsx,.md,.json --max-warnings 0 && pretty-quick --check --branch dev",
26-
"lint:fix": "eslint --fix . --ext .vue,.js,.ts,.jsx,.tsx,.md,.json && pretty-quick --branch dev",
24+
"format": "prettier --write --cache .",
25+
"lint": "eslint . --ext .vue,.js,.ts,.jsx,.tsx,.md,.json --max-warnings 0 --cache",
26+
"lint:fix": "pnpm run lint --fix",
2727
"lint:commit": "commitlint --from $(git merge-base origin/dev HEAD) --to HEAD > ./commit-lint.txt",
2828
"typecheck": "run-p typecheck:web typecheck:play typecheck:node typecheck:vite-config typecheck:vitest",
2929
"typecheck:web": "vue-tsc -p tsconfig.web.json --composite false --noEmit",
@@ -104,7 +104,6 @@
104104
"lint-staged": "^13.0.3",
105105
"npm-run-all": "^4.1.5",
106106
"prettier": "^2.7.1",
107-
"pretty-quick": "^3.1.3",
108107
"puppeteer": "^17.1.3",
109108
"resize-observer-polyfill": "^1.5.1",
110109
"rimraf": "^3.0.2",

pnpm-lock.yaml

Lines changed: 0 additions & 67 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)