From f71ee5b53e59ef48593541eb835922d8e955300a Mon Sep 17 00:00:00 2001 From: jonathan-mayer Date: Fri, 3 Jan 2025 07:39:11 +0100 Subject: [PATCH] fix: eslint hook --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ffec07d..f240af8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -37,6 +37,6 @@ repos: files: \.(md|mdx)$ - id: eslint name: Run ESLint - entry: npx eslint --fix --config=website/eslint.config.mjs "website/**/*.{js,jsx,ts,tsx,cts,cjs}" + entry: npx --prefix website eslint --fix --config=website/eslint.config.mjs "website/**/*.{js,jsx,ts,tsx,cts,cjs}" language: node files: website/.*\.(js|jsx|ts|tsx|cts|cjs)$