From 3b4e2d291789037a21070ef9ab95577ee3ef663d Mon Sep 17 00:00:00 2001 From: Yannic Kilcher Date: Sun, 25 Dec 2022 14:24:46 +0100 Subject: [PATCH] added eslint to pre-commit in a hacky way --- .pre-commit-config.yaml | 10 ++++++++++ website/src/pages/404.tsx | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cccb2167..928810f5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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' diff --git a/website/src/pages/404.tsx b/website/src/pages/404.tsx index 7af22569..0b7a5c9b 100644 --- a/website/src/pages/404.tsx +++ b/website/src/pages/404.tsx @@ -16,7 +16,7 @@ export default function Error() {
- {"Sorry, the page you're looking for doesn't exist."} + {"Sorry, the page you're looking for does not exist."}