diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index aa8417c..1ea241d 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -1,3 +1,7 @@ # Prettier formatting errors 32743cbd2f5dead77fd6ef7be25105f33c370f29 be76190dd8ca29e9e7b63a3cd1126386b2fe5917 +# Tailwind formatting +be06788c7b4a1041e2f13d2262eeccde74294c7f +# Eslint warning +e0721bc1c231d0eb9f3d5fe1dcbce6a0256a2879 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 39e4674..877f29c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,6 +25,13 @@ repos: language: system types: [python] pass_filenames: false + - id: npm-lint + name: npm-lint + entry: npm --prefix server run lint + language: system + files: ^server/ + types_or: [javascript, jsx, ts, tsx] + pass_filenames: false - id: npm-build name: npm-build entry: npm --prefix server run build @@ -37,7 +44,7 @@ repos: entry: npx --prefix server prettier --config=server/.prettierrc --ignore-path=server/.prettierignore --check server language: system files: ^server/ - types_or: [javascript, jsx, ts, tsx] + types_or: [javascript, jsx, ts, tsx, json] - id: jest-tests name: jest-tests entry: npm --prefix server run test diff --git a/server/.eslintrc.json b/server/.eslintrc.json index bffb357..aa05915 100644 --- a/server/.eslintrc.json +++ b/server/.eslintrc.json @@ -1,3 +1,3 @@ { - "extends": "next/core-web-vitals" + "extends": ["next/core-web-vitals", "plugin:tailwindcss/recommended"] } diff --git a/server/app/alert.tsx b/server/app/alert.tsx index be49468..37434a5 100644 --- a/server/app/alert.tsx +++ b/server/app/alert.tsx @@ -5,9 +5,9 @@ export default function QueryStartedAlert({ queryId }: { queryId: string }) { return (
-
+
@@ -20,13 +20,13 @@ export default function QueryStartedAlert({ queryId }: { queryId: string }) {

-
+
diff --git a/server/app/footer.tsx b/server/app/footer.tsx index b713b0c..d672af1 100644 --- a/server/app/footer.tsx +++ b/server/app/footer.tsx @@ -1,19 +1,19 @@ export default function Example() { return ( -