From d09dbfa2da847498850c130558252b9132c72864 Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Fri, 27 Dec 2024 20:57:57 +0100 Subject: [PATCH] chore: test precommit --- .husky/pre-commit | 3 ++- eslint.config.mjs | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 2312dc5..abbab06 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1 +1,2 @@ -npx lint-staged +npm run eslint --cache +npm run prettier . --write diff --git a/eslint.config.mjs b/eslint.config.mjs index f404b9f..a47629a 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -18,6 +18,8 @@ import { fileURLToPath } from 'node:url'; + + const __filename = fileURLToPath(import.meta.url) const __dirname = path.dirname(__filename) const gitignorePath = path.resolve(__dirname, '.gitignore')