Skip to content

Commit

Permalink
chore: add lint hook
Browse files Browse the repository at this point in the history
[deploy]
  • Loading branch information
hemengke1997 committed Sep 2, 2024
1 parent 555ffab commit cc4142e
Show file tree
Hide file tree
Showing 2 changed files with 432 additions and 2 deletions.
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@
"build:pages": "pnpm run build && cd playground && pnpm run build",
"test": "vitest",
"test:ui": "vitest --ui",
"lint": "tsc --noEmit && eslint . --fix",
"prepare": "simple-git-hooks",
"commitlint": "commitlint -e",
"lint": "tsc --noEmit && eslint .",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
"bump": "bumpp package.json -c --no-push -t --all -x \"npm run changelog\""
},
Expand All @@ -55,6 +57,7 @@
"react-resizable": "^3.0.5"
},
"devDependencies": {
"@commitlint/cli": "^19.4.0",
"@minko-fe/commitlint-config": "^2.1.2",
"@minko-fe/eslint-config": "^4.0.0",
"@minko-fe/prettier-config": "^2.2.3",
Expand Down Expand Up @@ -82,13 +85,18 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"rimraf": "^6.0.1",
"simple-git-hooks": "^2.11.1",
"terser": "^5.31.6",
"tsup": "^8.2.4",
"tsup-plugin-bundleless": "^0.4.0",
"typescript": "^5.5.4",
"vite": "^5.4.2",
"vitest": "^2.0.5"
},
"simple-git-hooks": {
"commit-msg": "npm run commitlint",
"pre-commit": "npm run lint"
},
"prettier": "@minko-fe/prettier-config",
"commitlint": {
"extends": [
Expand Down
Loading

0 comments on commit cc4142e

Please sign in to comment.