From 7e9fd9b744f941aaf82ba53aca9bfcc5eaa59118 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Soulas?= Date: Wed, 10 Jul 2024 16:13:38 +0200 Subject: [PATCH] chore(api): add eslint to lint-staged and npm run --- .gitignore | 1 + packages/reva-api/package.json | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 87f6869e6..2b712e747 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ dist .env +.eslintcache .DS_Store .elm-pages elm-stuff diff --git a/packages/reva-api/package.json b/packages/reva-api/package.json index 51f6d97ab..35ef51042 100644 --- a/packages/reva-api/package.json +++ b/packages/reva-api/package.json @@ -22,6 +22,7 @@ "prisma:generate:migration": "prisma migrate dev --create-only", "cron": "npx tsx@4.7.0 infra/cron.ts", "cron-dev": "npx tsx@4.7.0 infra/cron.ts | npx pino-pretty", + "eslint": "eslint modules infra --cache", "lint-staged": "lint-staged", "lint-all": "prettier --write \"{infra,modules}/**/*.{ts,md}\"" }, @@ -84,10 +85,12 @@ }, "lint-staged": { "modules/**/*.{ts,md}": [ - "prettier --write" + "prettier --write", + "eslint" ], "infra/**/*.{ts,md}": [ - "prettier --write" + "prettier --write", + "eslint" ] }, "dependencies": {