From 05c399db9c8c67ff40eed6b34bcd4f0ff61bfed9 Mon Sep 17 00:00:00 2001 From: Volnei Munhoz Date: Sat, 25 Oct 2025 07:51:18 -0300 Subject: [PATCH] lint stage not loading config from file - using root instead (#24671) --- lint-staged.config.mjs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lint-staged.config.mjs b/lint-staged.config.mjs index e42fa015a3..453a922a69 100644 --- a/lint-staged.config.mjs +++ b/lint-staged.config.mjs @@ -1,8 +1,8 @@ export default { - "(apps|packages)/**/*.{js,ts,jsx,tsx}": [ - "prettier --write", - process.env.SKIP_WARNINGS === "1" ? "eslint --fix" : "eslint --fix --max-warnings=0", - ], + "(apps|packages)/**/*.{js,ts,jsx,tsx}": (files) => + process.env.SKIP_WARNINGS === "1" + ? `eslint --fix --flag v10_config_lookup_from_file ${files.join(" ")}` + : `eslint --fix --flag v10_config_lookup_from_file --max-warnings=0 ${files.join(" ")}`, "*.json": ["prettier --write"], "packages/prisma/schema.prisma": ["prisma format"], };