From 48fd5ca8cb754c8b7f7af061910a3d3b3080e40b Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Thu, 21 Jul 2022 10:09:36 +0200 Subject: [PATCH] Removed posttest linting step - linting is done as a separate step in CI and it's a git hook upon pushing locally, so we don't need to run it after tests --- ghost/custom-theme-settings-service/package.json | 3 +-- ghost/domain-events/package.json | 3 +-- ghost/email-analytics-provider-mailgun/package.json | 3 +-- ghost/email-analytics-service/package.json | 3 +-- ghost/express-dynamic-redirects/package.json | 3 +-- ghost/magic-link/package.json | 3 +-- ghost/member-analytics-service/package.json | 3 +-- ghost/member-events/package.json | 3 +-- ghost/members-analytics-ingress/package.json | 3 +-- ghost/members-csv/package.json | 3 +-- ghost/members-events-service/package.json | 3 +-- ghost/members-importer/package.json | 3 +-- ghost/offers/package.json | 3 +-- ghost/payments/package.json | 3 +-- ghost/stripe/package.json | 3 +-- ghost/verification-trigger/package.json | 3 +-- 16 files changed, 16 insertions(+), 32 deletions(-) diff --git a/ghost/custom-theme-settings-service/package.json b/ghost/custom-theme-settings-service/package.json index 71c13971d9..93d632d9a0 100644 --- a/ghost/custom-theme-settings-service/package.json +++ b/ghost/custom-theme-settings-service/package.json @@ -9,8 +9,7 @@ "scripts": { "dev": "echo \"Implement me!\"", "test": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura --check-coverage mocha './test/**/*.test.js'", - "lint": "eslint . --ext .js --cache", - "posttest": "yarn lint" + "lint": "eslint . --ext .js --cache" }, "files": [ "index.js", diff --git a/ghost/domain-events/package.json b/ghost/domain-events/package.json index f14dfe2123..d2a26d7807 100644 --- a/ghost/domain-events/package.json +++ b/ghost/domain-events/package.json @@ -10,8 +10,7 @@ "scripts": { "dev": "echo \"Implement me!\"", "test": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura --check-coverage mocha './test/**/*.test.js'", - "lint": "eslint . --ext .js --cache", - "posttest": "yarn lint" + "lint": "eslint . --ext .js --cache" }, "files": [ "index.js", diff --git a/ghost/email-analytics-provider-mailgun/package.json b/ghost/email-analytics-provider-mailgun/package.json index 1e560c3e33..1ab7ebc692 100644 --- a/ghost/email-analytics-provider-mailgun/package.json +++ b/ghost/email-analytics-provider-mailgun/package.json @@ -9,8 +9,7 @@ "scripts": { "dev": "echo \"Implement me!\"", "test": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura --check-coverage mocha './test/**/*.test.js'", - "lint": "eslint . --ext .js --cache", - "posttest": "yarn lint" + "lint": "eslint . --ext .js --cache" }, "files": [ "index.js", diff --git a/ghost/email-analytics-service/package.json b/ghost/email-analytics-service/package.json index 8816c82975..cbcf51f737 100644 --- a/ghost/email-analytics-service/package.json +++ b/ghost/email-analytics-service/package.json @@ -9,8 +9,7 @@ "scripts": { "dev": "echo \"Implement me!\"", "test": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", - "lint": "eslint . --ext .js --cache", - "posttest": "yarn lint" + "lint": "eslint . --ext .js --cache" }, "files": [ "index.js", diff --git a/ghost/express-dynamic-redirects/package.json b/ghost/express-dynamic-redirects/package.json index 71235ca85b..dc11d0e329 100644 --- a/ghost/express-dynamic-redirects/package.json +++ b/ghost/express-dynamic-redirects/package.json @@ -9,8 +9,7 @@ "scripts": { "dev": "echo \"Implement me!\"", "test": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura --check-coverage mocha './test/**/*.test.js'", - "lint": "eslint . --ext .js --cache", - "posttest": "yarn lint" + "lint": "eslint . --ext .js --cache" }, "files": [ "index.js", diff --git a/ghost/magic-link/package.json b/ghost/magic-link/package.json index 6e9af6f900..436524dca4 100644 --- a/ghost/magic-link/package.json +++ b/ghost/magic-link/package.json @@ -9,8 +9,7 @@ "scripts": { "dev": "echo \"Implement me!\"", "test": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", - "lint": "eslint . --ext .js --cache", - "posttest": "yarn lint" + "lint": "eslint . --ext .js --cache" }, "files": [ "index.js", diff --git a/ghost/member-analytics-service/package.json b/ghost/member-analytics-service/package.json index 8f257a34f8..c4cf9ae77a 100644 --- a/ghost/member-analytics-service/package.json +++ b/ghost/member-analytics-service/package.json @@ -9,8 +9,7 @@ "scripts": { "dev": "echo \"Implement me!\"", "test": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", - "lint": "eslint . --ext .js --cache", - "posttest": "yarn lint" + "lint": "eslint . --ext .js --cache" }, "files": [ "index.js", diff --git a/ghost/member-events/package.json b/ghost/member-events/package.json index 1ad839c6d6..d0ecd45148 100644 --- a/ghost/member-events/package.json +++ b/ghost/member-events/package.json @@ -9,8 +9,7 @@ "scripts": { "dev": "echo \"Implement me!\"", "test": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", - "lint": "eslint . --ext .js --cache", - "posttest": "yarn lint" + "lint": "eslint . --ext .js --cache" }, "files": [ "index.js", diff --git a/ghost/members-analytics-ingress/package.json b/ghost/members-analytics-ingress/package.json index f4d817eca4..1e8af95325 100644 --- a/ghost/members-analytics-ingress/package.json +++ b/ghost/members-analytics-ingress/package.json @@ -9,8 +9,7 @@ "scripts": { "dev": "echo \"Implement me!\"", "test": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", - "lint": "eslint . --ext .js --cache", - "posttest": "yarn lint" + "lint": "eslint . --ext .js --cache" }, "files": [ "index.js", diff --git a/ghost/members-csv/package.json b/ghost/members-csv/package.json index bd4fc14d0a..2d0dff99a2 100644 --- a/ghost/members-csv/package.json +++ b/ghost/members-csv/package.json @@ -9,8 +9,7 @@ "scripts": { "dev": "echo \"Implement me!\"", "test": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", - "lint": "eslint . --ext .js --cache", - "posttest": "yarn lint" + "lint": "eslint . --ext .js --cache" }, "files": [ "index.js", diff --git a/ghost/members-events-service/package.json b/ghost/members-events-service/package.json index ac45903684..64d26cbd9d 100644 --- a/ghost/members-events-service/package.json +++ b/ghost/members-events-service/package.json @@ -9,8 +9,7 @@ "scripts": { "dev": "echo \"Implement me!\"", "test": "NODE_ENV=testing c8 --all --check-coverage mocha './test/**/*.test.js'", - "lint": "eslint . --ext .js --cache", - "posttest": "yarn lint" + "lint": "eslint . --ext .js --cache" }, "files": [ "index.js", diff --git a/ghost/members-importer/package.json b/ghost/members-importer/package.json index 2c6c534c50..dbed7da20c 100644 --- a/ghost/members-importer/package.json +++ b/ghost/members-importer/package.json @@ -9,8 +9,7 @@ "scripts": { "dev": "echo \"Implement me!\"", "test": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", - "lint": "eslint . --ext .js --cache", - "posttest": "yarn lint" + "lint": "eslint . --ext .js --cache" }, "files": [ "index.js", diff --git a/ghost/offers/package.json b/ghost/offers/package.json index 27606fd6af..b9f8c3ee05 100644 --- a/ghost/offers/package.json +++ b/ghost/offers/package.json @@ -9,8 +9,7 @@ "scripts": { "dev": "echo \"Implement me!\"", "test": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", - "lint": "eslint . --ext .js --cache", - "posttest": "yarn lint" + "lint": "eslint . --ext .js --cache" }, "files": [ "index.js", diff --git a/ghost/payments/package.json b/ghost/payments/package.json index 4083c596d2..cf997936df 100644 --- a/ghost/payments/package.json +++ b/ghost/payments/package.json @@ -9,8 +9,7 @@ "scripts": { "dev": "echo \"Implement me!\"", "test": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", - "lint": "eslint . --ext .js --cache", - "posttest": "yarn lint" + "lint": "eslint . --ext .js --cache" }, "files": [ "index.js", diff --git a/ghost/stripe/package.json b/ghost/stripe/package.json index df960ee2f4..e7ffc04160 100644 --- a/ghost/stripe/package.json +++ b/ghost/stripe/package.json @@ -9,8 +9,7 @@ "scripts": { "dev": "echo \"Implement me!\"", "test": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", - "lint": "eslint . --ext .js --cache", - "posttest": "yarn lint" + "lint": "eslint . --ext .js --cache" }, "files": [ "index.js", diff --git a/ghost/verification-trigger/package.json b/ghost/verification-trigger/package.json index 8df6c1cbeb..85128f6aef 100644 --- a/ghost/verification-trigger/package.json +++ b/ghost/verification-trigger/package.json @@ -9,8 +9,7 @@ "scripts": { "dev": "echo \"Implement me!\"", "test": "NODE_ENV=testing c8 --all --check-coverage --reporter text --reporter cobertura mocha './test/**/*.test.js'", - "lint": "eslint . --ext .js --cache", - "posttest": "yarn lint" + "lint": "eslint . --ext .js --cache" }, "files": [ "index.js",