diff --git a/web/.lintstagedrc.js b/web/.lintstagedrc.js new file mode 100644 index 0000000000..f3ada3baf0 --- /dev/null +++ b/web/.lintstagedrc.js @@ -0,0 +1,4 @@ +export default { + '**/*.js?(x)': ['next lint --fix'], + '**/*.ts?(x)': ['next lint --fix'], +} \ No newline at end of file diff --git a/web/package.json b/web/package.json index 76158c7730..2a24296350 100644 --- a/web/package.json +++ b/web/package.json @@ -78,6 +78,8 @@ "@types/qs": "^6.9.7", "autoprefixer": "^10.4.14", "eslint-plugin-react-hooks": "^4.6.0", + "husky": "^8.0.3", + "lint-staged": "^13.2.2", "miragejs": "^0.1.47", "postcss": "^8.4.21", "tailwindcss": "^3.2.7"