chore: add Husky and lint-staged to the root
parent
26eb127f
No related branches found
No related tags found
Showing
- .husky/commit-msg 4 additions, 0 deletions.husky/commit-msg
- .husky/pre-commit 4 additions, 0 deletions.husky/pre-commit
- .lintstagedrc 3 additions, 0 deletions.lintstagedrc
- commitlint.config.cjs 3 additions, 0 deletionscommitlint.config.cjs
- package.json 7 additions, 1 deletionpackage.json
- pnpm-lock.yaml 709 additions, 70 deletionspnpm-lock.yaml
.husky/commit-msg
0 → 100755
.husky/pre-commit
0 → 100755
.lintstagedrc
0 → 100644
commitlint.config.cjs
0 → 100644
... | @@ -12,9 +12,13 @@ | ... | @@ -12,9 +12,13 @@ |
"lint": "eslint --fix", | "lint": "eslint --fix", | ||
"lint:all": "npm run lint -- .", | "lint:all": "npm run lint -- .", | ||
"format": "prettier --write", | "format": "prettier --write", | ||
"format:all": "npm run format -- ." | "format:all": "npm run format -- .", | ||
"lint-staged": "lint-staged", | |||
"prepare": "husky install" | |||
}, | }, | ||
"devDependencies": { | "devDependencies": { | ||
"@commitlint/cli": "^18.4.2", | |||
"@commitlint/config-conventional": "^18.4.2", | |||
"@typescript-eslint/eslint-plugin": "^6.11.0", | "@typescript-eslint/eslint-plugin": "^6.11.0", | ||
"@typescript-eslint/parser": "^6.11.0", | "@typescript-eslint/parser": "^6.11.0", | ||
"eslint": "^8.54.0", | "eslint": "^8.54.0", | ||
... | @@ -23,6 +27,8 @@ | ... | @@ -23,6 +27,8 @@ |
"eslint-plugin-import": "^2.29.0", | "eslint-plugin-import": "^2.29.0", | ||
"eslint-plugin-prettier": "^5.0.1", | "eslint-plugin-prettier": "^5.0.1", | ||
"eslint-plugin-workspaces": "^0.9.0", | "eslint-plugin-workspaces": "^0.9.0", | ||
"husky": "^8.0.0", | |||
"lint-staged": "^15.1.0", | |||
"prettier": "^3.1.0" | "prettier": "^3.1.0" | ||
} | } | ||
} | } |
This diff is collapsed.
Please register or sign in to comment