]> source.dussan.org Git - sonarqube.git/commitdiff
NO-JIRA Prevent Prettier from adding trailing commas in some JSON files
authorAmbroise C <ambroise.christea@sonarsource.com>
Thu, 16 May 2024 14:01:27 +0000 (16:01 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 16 May 2024 20:02:39 +0000 (20:02 +0000)
server/sonar-web/.prettierrc
server/sonar-web/tsconfig.json

index 910f0844a44c9fb6701ee3b1e66fefb03798cb49..7e2d3ccec9318ecba356cee00550c9536ff98553 100644 (file)
@@ -1,5 +1,14 @@
 {
   "printWidth": 100,
   "singleQuote": true,
-  "plugins": ["prettier-plugin-organize-imports"]
+  "plugins": ["prettier-plugin-organize-imports"],
+
+  "overrides": [
+    {
+      "files": [".eslintrc", "tsconfig.json"],
+      "options": {
+        "trailingComma": "none"
+      }
+    }
+  ]
 }
index 0be610d70e9392cdea4c1117fcbc6af7103ac283..feec8dcc0e3bc4655351d3ddae54dfb05dfae3f5 100644 (file)
@@ -8,7 +8,7 @@
     }
   },
   "parserOptions": {
-    "project": true,
+    "project": true
   },
-  "include": ["./src/main/js/**/*"],
+  "include": ["./src/main/js/**/*"]
 }