From 2ef09d69e1a1eeccd205618191f820c414edd64d Mon Sep 17 00:00:00 2001 From: 7PH Date: Fri, 26 Jan 2024 17:44:32 +0100 Subject: [PATCH] NO-JIRA Make prettier fails more verbose and self-explanatory --- server/sonar-web/design-system/package.json | 2 +- server/sonar-web/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/sonar-web/design-system/package.json b/server/sonar-web/design-system/package.json index 77cfdaf9ddc..79d0b2304f0 100644 --- a/server/sonar-web/design-system/package.json +++ b/server/sonar-web/design-system/package.json @@ -5,7 +5,7 @@ "types": "lib/index.d.ts", "scripts": { "format": "prettier --write --list-different \"src/**/*.{ts,tsx}\"", - "format-check": "prettier --list-different \"src/**/*.{ts,tsx}\"", + "format-check": "prettier --check \"src/**/*.{ts,tsx}\"", "build": "yarn lint && yarn ts-check && vite build", "build:no-checks": "vite build", "build-release": "yarn install --immutable && yarn build", diff --git a/server/sonar-web/package.json b/server/sonar-web/package.json index 33fbd810181..58b852ef303 100644 --- a/server/sonar-web/package.json +++ b/server/sonar-web/package.json @@ -119,7 +119,7 @@ "test": "jest", "test-eslint-local-rules": "jest -c eslint-local-rules/jest.config.js", "format": "prettier --write --list-different \"src/main/js/**/*.{js,ts,tsx,css}\"", - "format-check": "prettier --list-different \"src/main/js/**/*.{js,ts,tsx,css}\"", + "format-check": "prettier --check \"src/main/js/**/*.{js,ts,tsx,css}\"", "lint": "eslint --ext js,ts,tsx --quiet src/main/js", "lint-report": "eslint --ext js,ts,tsx -f json -o eslint-report/eslint-report.json src/main/js", "lint-report-ci": "yarn install --immutable && eslint --ext js,ts,tsx --config .eslintrc-ci -f json -o eslint-report/eslint-report.json src/main/js || yarn lint", -- 2.39.5