From 32206506b3aa2f543a245630d06928e2cc101c74 Mon Sep 17 00:00:00 2001 From: Heiko Witteborg Date: Fri, 12 Apr 2024 15:08:42 +0200 Subject: [PATCH] chore: improve `prettier` and `eslint` scripts (#155) * Improve prettier scripts * Update package.json Co-authored-by: Marcel Schwarz * Update package.json * Don't pin `prettier` version * Rm `eslint` dev dependency * `npm_config_yes=true` for `eslint` script * Use latest `eslint` version --------- Co-authored-by: Marcel Schwarz --- package.json | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 5485103..c26c4e6 100644 --- a/package.json +++ b/package.json @@ -25,9 +25,9 @@ "node": ">=14" }, "scripts": { - "prettier": "npx prettier --write app lib test", - "prettier:check": "npx prettier --check app lib test", - "lint": "npx eslint .", + "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@latest .", "test": "jest --silent", "test:generate-schemas": "node ./test/scripts/generate-schemas.js" }, @@ -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",