Skip to content

Commit 05c399d

Browse files
authored
lint stage not loading config from file - using root instead (calcom#24671)
1 parent 57776b8 commit 05c399d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lint-staged.config.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
export default {
2-
"(apps|packages)/**/*.{js,ts,jsx,tsx}": [
3-
"prettier --write",
4-
process.env.SKIP_WARNINGS === "1" ? "eslint --fix" : "eslint --fix --max-warnings=0",
5-
],
2+
"(apps|packages)/**/*.{js,ts,jsx,tsx}": (files) =>
3+
process.env.SKIP_WARNINGS === "1"
4+
? `eslint --fix --flag v10_config_lookup_from_file ${files.join(" ")}`
5+
: `eslint --fix --flag v10_config_lookup_from_file --max-warnings=0 ${files.join(" ")}`,
66
"*.json": ["prettier --write"],
77
"packages/prisma/schema.prisma": ["prisma format"],
88
};

0 commit comments

Comments
 (0)