]> source.dussan.org Git - sonarqube.git/commitdiff
NO-JIRA Make prettier fails more verbose and self-explanatory
author7PH <benjamin.raymond@sonarsource.com>
Fri, 26 Jan 2024 16:44:32 +0000 (17:44 +0100)
committersonartech <sonartech@sonarsource.com>
Wed, 31 Jan 2024 20:03:38 +0000 (20:03 +0000)
server/sonar-web/design-system/package.json
server/sonar-web/package.json

index 77cfdaf9ddc2803f9ac51bbbbe6f6bad419ee836..79d0b2304f0fc7d1e7cf5df9fb48b3593db22d29 100644 (file)
@@ -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",
index 33fbd810181c6a2fea1460207d2e5dab74c34331..58b852ef30385d9be5c93bf738167f94c3f7eddb 100644 (file)
     "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",