From e1d3874e79d0e8e8ebeba9d94bff60e61b4e4f63 Mon Sep 17 00:00:00 2001 From: Lucas Smith Date: Sat, 9 Dec 2023 11:40:23 +1100 Subject: [PATCH] fix: do not lint js files --- lint-staged.config.cjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lint-staged.config.cjs b/lint-staged.config.cjs index b8fd3a0b4..3dd4bf238 100644 --- a/lint-staged.config.cjs +++ b/lint-staged.config.cjs @@ -1,4 +1,5 @@ module.exports = { - '**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts}': ['prettier --write', 'eslint --fix'], + '**/*.{ts,tsx,cts,mts}': ['eslint --fix'], + '**/*.{js,jsx,cjs,mjs}': ['prettier --write'], '**/*.{yml,mdx}': ['prettier --write'], };