Skip to content

Commit

Permalink
added eslint to pre-commit in a hacky way
Browse files Browse the repository at this point in the history
  • Loading branch information
yk committed Dec 25, 2022
1 parent 6452bb8 commit 3b4e2d2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion website/src/pages/404.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 />
</>
Expand Down

0 comments on commit 3b4e2d2

Please sign in to comment.