chore: Optional skip warnings for lint-staged (#24102)

* add optional skip warnings

* remove test changes

* allow underscore variables pattern being ignored by eslint (#24103)
This commit is contained in:
Volnei Munhoz authored and GitHub committed 2025-09-29 19:51:18 +00:00
1 parent 9710d3b15c
commit 61c44780f0
3 files changed
+11 -13

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
export default {
"(apps|packages)/**/*.{js,ts,jsx,tsx}": [
"prettier --write",
process.env.SKIP_WARNINGS === "1" ? "eslint --fix" : "eslint --fix --max-warnings=0",
],
"*.json": ["prettier --write"],
"packages/prisma/schema.prisma": ["prisma format"],
};
+2 -13
View File
@@ -82,7 +82,8 @@
"docker-stop-api": "docker ps --filter 'ancestor=cal-api' -q | xargs docker stop",
"changesets-add": "yarn changeset add",
"changesets-version": "yarn changeset version",
"changesets-release": "NODE_OPTIONS='--max_old_space_size=12288' turbo run build --filter=@calcom/atoms && yarn changeset publish"
"changesets-release": "NODE_OPTIONS='--max_old_space_size=12288' turbo run build --filter=@calcom/atoms && yarn changeset publish",
"lint-staged": "lint-staged"
},
"devDependencies": {
"@calcom/eslint-config": "workspace:*",
@@ -140,18 +141,6 @@
"dayjs@^1.8.29": "patch:dayjs@npm%3A1.11.4#./.yarn/patches/dayjs-npm-1.11.4-97921cd375.patch",
"import-in-the-middle": "1.13.1"
},
"lint-staged": {
"(apps|packages)/**/*.{js,ts,jsx,tsx}": [
"prettier --write",
"eslint --fix --max-warnings=0"
],
"*.json": [
"prettier --write"
],
"packages/prisma/schema.prisma": [
"prisma format"
]
},
"engines": {
"npm": ">=7.0.0",
"yarn": "3.4.1"
+1
View File
@@ -22,6 +22,7 @@ export const config = [
},
rules: {
"turbo/no-undeclared-env-vars": "warn",
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }],
},
languageOptions: {
ecmaVersion: 2021,