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'
+1 -1
View File
@@ -16,7 +16,7 @@ export default function Error() {
</Head>
<Header />
<main className="flex h-3/4 items-center justify-center overflow-hidden subpixel-antialiased text-xl">
{"Sorry, the page you're looking for doesn't exist."}
{"Sorry, the page you're looking for does not exist."}
</main>
<Footer />
</>