From 7d22957404b933c3b45dc7ab4596cfc21a4d736a Mon Sep 17 00:00:00 2001 From: nafees nazik Date: Fri, 8 Dec 2023 21:27:38 +0530 Subject: [PATCH] chore: add eslint fix command --- lint-staged.config.cjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lint-staged.config.cjs b/lint-staged.config.cjs index a975cb594..b8fd3a0b4 100644 --- a/lint-staged.config.cjs +++ b/lint-staged.config.cjs @@ -1,4 +1,4 @@ module.exports = { - '**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts,mdx}': ['prettier --write'], - '**/*.yml': ['prettier --write'], + '**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts}': ['prettier --write', 'eslint --fix'], + '**/*.{yml,mdx}': ['prettier --write'], };