Skip to content

Commit

Permalink
build: improve lint-staged config
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Mar 6, 2024
1 parent c585c4b commit b28dd33
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@
"test:unit:cov": "vitest run --coverage"
},
"lint-staged": {
"**/*": "prettier --write --ignore-unknown",
"*.{cjs,js,ts,vue}": "eslint --fix",
"*.!(cjs|js|ts|vue)": "prettier --write --ignore-unknown",
"*.(cjs|js|ts|vue)": [
"eslint --fix",
"prettier --write"
],
"package.json": "sort-package-json"
},
"prettier": "prettier-config-vuepress",
Expand Down

0 comments on commit b28dd33

Please sign in to comment.