From 30492259d87b86d587c77d46cf7c56399900be84 Mon Sep 17 00:00:00 2001 From: Dima Grossman Date: Mon, 1 Jul 2024 22:37:52 +0300 Subject: [PATCH] fix(root): no more eslint on pre-commit (#5905) * fix: no more eslint * fix: stop only for e2e tests --- apps/api/package.json | 5 ----- apps/web/package.json | 5 ----- apps/widget/package.json | 5 ----- apps/worker/package.json | 5 ----- enterprise/packages/libs/dal/package.json | 5 ----- libs/dal/package.json | 5 ----- libs/embed/package.json | 3 --- libs/testing/package.json | 5 ----- package.json | 15 ++++++--------- 9 files changed, 6 insertions(+), 47 deletions(-) diff --git a/apps/api/package.json b/apps/api/package.json index 54cbc40766a..2c10d08383f 100644 --- a/apps/api/package.json +++ b/apps/api/package.json @@ -125,10 +125,5 @@ "@novu/ee-echo-api": "workspace:*", "@novu/ee-shared-services": "workspace:*", "@novu/ee-translation": "workspace:*" - }, - "lint-staged": { - "*.{js,jsx,ts,tsx}": [ - "eslint" - ] } } diff --git a/apps/web/package.json b/apps/web/package.json index a7705a7f701..62a9c2fccc0 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -184,11 +184,6 @@ "last 1 safari version" ] }, - "lint-staged": { - "*.{js,jsx,ts,tsx}": [ - "eslint" - ] - }, "eslintConfig": { "overrides": [ { diff --git a/apps/widget/package.json b/apps/widget/package.json index ad333bfd91a..e46e0070156 100644 --- a/apps/widget/package.json +++ b/apps/widget/package.json @@ -121,10 +121,5 @@ "**/@babel", "**/@babel/**" ] - }, - "lint-staged": { - "*.{js,jsx,ts,tsx}": [ - "eslint" - ] } } diff --git a/apps/worker/package.json b/apps/worker/package.json index a831e2de751..c42172ea0e3 100644 --- a/apps/worker/package.json +++ b/apps/worker/package.json @@ -91,10 +91,5 @@ "@novu/ee-echo-worker": "workspace:*", "@novu/ee-shared-services": "workspace:*", "@novu/ee-translation": "workspace:*" - }, - "lint-staged": { - "*.{js,jsx,ts,tsx}": [ - "eslint" - ] } } diff --git a/enterprise/packages/libs/dal/package.json b/enterprise/packages/libs/dal/package.json index bc0e678f572..9c39ab524e9 100644 --- a/enterprise/packages/libs/dal/package.json +++ b/enterprise/packages/libs/dal/package.json @@ -34,10 +34,5 @@ }, "peerDependencies": { "@nestjs/common": "10.2.2" - }, - "lint-staged": { - "*.{js,jsx,ts,tsx}": [ - "eslint" - ] } } diff --git a/libs/dal/package.json b/libs/dal/package.json index daeba20491d..58647a45ec9 100644 --- a/libs/dal/package.json +++ b/libs/dal/package.json @@ -50,10 +50,5 @@ "typescript": "4.9.5", "rimraf": "^3.0.2", "supertest": "^5.0.0" - }, - "lint-staged": { - "*.{js,jsx,ts,tsx}": [ - "eslint" - ] } } diff --git a/libs/embed/package.json b/libs/embed/package.json index d4b359b87cb..f1ab4e96d4c 100644 --- a/libs/embed/package.json +++ b/libs/embed/package.json @@ -39,9 +39,6 @@ "precommit": "lint-staged" }, "lint-staged": { - "*.{js,jsx,ts,tsx}": [ - "eslint" - ], "{*.json,.{babelrc,eslintrc,prettierrc,stylelintrc}}": [ "prettier --ignore-path .eslintignore --parser json --write" ], diff --git a/libs/testing/package.json b/libs/testing/package.json index 1375205a9aa..0ed3018a80e 100644 --- a/libs/testing/package.json +++ b/libs/testing/package.json @@ -53,10 +53,5 @@ "ts-node": "~10.9.1", "tsconfig-paths": "~4.1.0", "typescript": "4.9.5" - }, - "lint-staged": { - "*.{js,jsx,ts,tsx}": [ - "eslint" - ] } } diff --git a/package.json b/package.json index 14992175843..9fadbbed4a1 100644 --- a/package.json +++ b/package.json @@ -183,20 +183,17 @@ } }, "lint-staged": { - "apps/**/*.{ts,tsx,json}": [ - "prettier --ignore-path ./.prettierignore --write", - "eslint", + "*.{e2e,e2e-ee,spec}.{js,ts}": [ "stop-only --file" ], + "apps/**/*.{ts,tsx,json}": [ + "prettier --ignore-path ./.prettierignore --write" + ], "packages/**/*.{ts,tsx,json}": [ - "prettier --ignore-path ./.prettierignore --write", - "eslint", - "stop-only --file" + "prettier --ignore-path ./.prettierignore --write" ], "libs/**/*.{ts,js,json}": [ - "prettier --ignore-path ./.prettierignore --write", - "eslint", - "stop-only --file" + "prettier --ignore-path ./.prettierignore --write" ] }, "engines": {