feat: add husky and lint-staged for pre-commit linting

This commit is contained in:
Haileyesus
2026-03-05 17:46:16 +03:00
parent 783ad0c584
commit 4cc34358ab
3 changed files with 396 additions and 8 deletions

View File

@@ -35,7 +35,8 @@
"start": "npm run build && npm run server",
"release": "./release.sh",
"prepublishOnly": "npm run build",
"postinstall": "node scripts/fix-node-pty.js"
"postinstall": "node scripts/fix-node-pty.js",
"prepare": "husky"
},
"keywords": [
"claude code",
@@ -122,6 +123,8 @@
"eslint-plugin-tailwindcss": "^3.18.2",
"eslint-plugin-unused-imports": "^4.4.1",
"globals": "^17.4.0",
"husky": "^9.1.7",
"lint-staged": "^16.3.2",
"node-gyp": "^10.0.0",
"postcss": "^8.4.32",
"release-it": "^19.0.5",
@@ -130,5 +133,8 @@
"typescript": "^5.9.3",
"typescript-eslint": "^8.56.1",
"vite": "^7.0.4"
},
"lint-staged": {
"src/**/*.{ts,tsx,js,jsx}": "eslint"
}
}