mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-25 13:00:24 +08:00
added eslint to pre-commit in a hacky way
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user