diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 0000000..c02eb33 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1 @@ +bunx lint-staged --config lint-staged.config.ts \ No newline at end of file diff --git a/bun.lockb b/bun.lockb index a2453ae..45ac4b1 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/lint-staged.config.ts b/lint-staged.config.ts new file mode 100644 index 0000000..ad4adf4 --- /dev/null +++ b/lint-staged.config.ts @@ -0,0 +1,7 @@ +import type { Configuration } from 'lint-staged' + +const config: Configuration = { + '*.{js,jsx,ts,tsx}': 'eslint --fix' +} + +export default config diff --git a/package.json b/package.json index fa9a356..9429ed3 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "formik": "^2.4.5", "framer-motion": "^12.38.0", "isomorphic-fetch": "^3.0.0", + "lint-staged": "^16.4.0", "next": "16.2.2", "node-appwrite": "^11.1.0", "react": "19.2.4",