From f534bde715a7b8b3709806df1529dac3941b2e63 Mon Sep 17 00:00:00 2001 From: Leo Singer Date: Tue, 2 Jul 2024 13:21:49 -0400 Subject: [PATCH] Don't run eslint on JSON files eslint should only be run on JavaScript sources. --- lint-staged.config.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lint-staged.config.mjs b/lint-staged.config.mjs index 82420f0..6054e66 100644 --- a/lint-staged.config.mjs +++ b/lint-staged.config.mjs @@ -1,4 +1,5 @@ export default { - '*.(json|md|ts|mjs)': ['prettier --write', 'eslint --max-warnings 0 .'], + '*.(json|md|ts|mjs)': 'prettier --write', + '*.(md|ts|mjs)': 'eslint --max-warnings 0 .', '*.ts': () => 'tsc', }