From e10c21febb35e81ee8e3f1d535db1090c3ea66e4 Mon Sep 17 00:00:00 2001 From: d049904 Date: Tue, 6 Feb 2024 08:40:33 +0100 Subject: [PATCH 1/7] Improve prettier scripts --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6a6f975..cf13f88 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,8 @@ "node": ">=14" }, "scripts": { - "prettier": "npx prettier --write app lib test", - "prettier:check": "npx prettier --check app lib test", + "prettier": "npx prettier@3 --write app lib test Date: Tue, 6 Feb 2024 13:19:39 +0100 Subject: [PATCH 2/7] Update package.json Co-authored-by: Marcel Schwarz --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index cf13f88..ba6e710 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,8 @@ "node": ">=14" }, "scripts": { - "prettier": "npx prettier@3 --write app lib test Date: Tue, 6 Feb 2024 13:37:47 +0100 Subject: [PATCH 3/7] Update package.json --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ba6e710..d8d522b 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,8 @@ "node": ">=14" }, "scripts": { - "prettier": "npm_config_yes=true npx prettier@3 --write app lib test", - "prettier:check": "npm_config_yes=true npx prettier@3 --check app lib test", + "prettier": "npm_config_yes=true npx prettier@3.2 --write app lib test", + "prettier:check": "npm_config_yes=true npx prettier@3.2 --check app lib test", "lint": "npx eslint .", "test": "jest --silent", "test:generate-schemas": "node ./test/scripts/generate-schemas.js" From 826082187c0cf035ce720bc5a9f684c204b7eb7b Mon Sep 17 00:00:00 2001 From: Marcel Schwarz Date: Fri, 12 Apr 2024 15:02:01 +0200 Subject: [PATCH 4/7] Don't pin `prettier` version --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index de5535f..6c86fa7 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,8 @@ "node": ">=14" }, "scripts": { - "prettier": "npm_config_yes=true npx prettier@3.2 --write app lib test", - "prettier:check": "npm_config_yes=true npx prettier@3.2 --check app lib test", + "prettier": "npm_config_yes=true npx prettier@latest --write app lib test", + "prettier:check": "npm_config_yes=true npx prettier@latest --check app lib test", "lint": "npx eslint .", "test": "jest --silent", "test:generate-schemas": "node ./test/scripts/generate-schemas.js" From b17527c476a0538c1ba0cfbb7e3e2abad78c3919 Mon Sep 17 00:00:00 2001 From: Marcel Schwarz Date: Fri, 12 Apr 2024 15:03:20 +0200 Subject: [PATCH 5/7] Rm `eslint` dev dependency --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index 6c86fa7..30a824e 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,6 @@ "devDependencies": { "@cap-js/graphql": "file:.", "axios": "^1", - "eslint": "^8", "express": "^4.17.1", "jest": "^29.3.1", "semver": "^7.4.0", From 12cbe0612ffc174e36deeebcdd9543baf8100cf3 Mon Sep 17 00:00:00 2001 From: Marcel Schwarz Date: Fri, 12 Apr 2024 15:04:12 +0200 Subject: [PATCH 6/7] `npm_config_yes=true` for `eslint` script --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 30a824e..31ead30 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "scripts": { "prettier": "npm_config_yes=true npx prettier@latest --write app lib test", "prettier:check": "npm_config_yes=true npx prettier@latest --check app lib test", - "lint": "npx eslint .", + "lint": "npm_config_yes=true npx eslint .", "test": "jest --silent", "test:generate-schemas": "node ./test/scripts/generate-schemas.js" }, From ff649c6e376fac4b66074f6f77385cb57bfd4e41 Mon Sep 17 00:00:00 2001 From: Marcel Schwarz Date: Fri, 12 Apr 2024 15:06:20 +0200 Subject: [PATCH 7/7] Use latest `eslint` version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 31ead30..c26c4e6 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "scripts": { "prettier": "npm_config_yes=true npx prettier@latest --write app lib test", "prettier:check": "npm_config_yes=true npx prettier@latest --check app lib test", - "lint": "npm_config_yes=true npx eslint .", + "lint": "npm_config_yes=true npx eslint@latest .", "test": "jest --silent", "test:generate-schemas": "node ./test/scripts/generate-schemas.js" },