added eslint to pre-commit in a hacky way

This commit is contained in:
Yannic Kilcher
2022-12-25 14:24:46 +01:00
parent 6452bb860d
commit 3b4e2d2917
2 changed files with 11 additions and 1 deletions
+10
View File
@@ -46,3 +46,13 @@ repos:
hooks:
- id: prettier
args: ["--write"]
- repo: local
hooks:
- id: next-lint-website
name: Lint website
files: ^website/
types_or: [javascript, jsx, ts, tsx]
language: system
pass_filenames: false
entry: bash -c 'cd website && npm install && npm run lint'