Skip to content

Commit

Permalink
perf(deps): replace lint-staged with nano-staged (#2816)
Browse files Browse the repository at this point in the history
  • Loading branch information
eiinu authored Jan 3, 2024
1 parent c28fc4c commit ca2a1bf
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 159 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
. "$(dirname "$0")/_/husky.sh"

node ./scripts/verifymail.js
npx lint-staged
npx --no-install nano-staged
2 changes: 1 addition & 1 deletion commitlint.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
'type-enum': [
2,
'always',
['upd', 'chore', 'docs', 'feat', 'fix', 'test', 'refactor', 'revert', 'style', 'release']
['upd', 'chore', 'docs', 'feat', 'fix', 'test', 'refactor', 'revert', 'style', 'release', 'perf']
]
}
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@
"fs-extra": "^11.2.0",
"husky": "^8.0.3",
"inquirer": "^9.2.12",
"lint-staged": "^15.2.0",
"lzutf8": "^0.6.3",
"markdown-it": "^14.0.0",
"nano-staged": "^0.8.0",
"prettier": "^3.1.1",
"rimraf": "^5.0.5",
"typescript": "^5.3.3",
Expand All @@ -111,7 +111,7 @@
"engines": {
"pnpm": ">= 8.0.0"
},
"lint-staged": {
"nano-staged": {
"*.{ts,tsx,js,jsx,vue,scss,md}": "prettier --write",
"*.{ts,tsx,js,jsx,vue}": "eslint --fix"
},
Expand Down
166 changes: 11 additions & 155 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ca2a1bf

Please sign in to comment.