build(ci): fix sonar scanner run
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 1 May 2023 19:49:17 +0000 (21:49 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 1 May 2023 19:49:17 +0000 (21:49 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
ui/web/sonar-project.properties
ui/web/tsconfig-sonar.json [new file with mode: 0644]

index 4c6b4f699bcbbcba7c45d929bb806d5e8cab7dc0..e2f93bdcd64e6718ebf8bf887fd60ad067a56160 100644 (file)
@@ -11,5 +11,7 @@ sonar.tests=tests
 
 sonar.javascript.lcov.reportPaths=coverage/lcov.info
 
+sonar.typescript.tsconfigPath=tsconfig-sonar.json
+
 # Encoding of the source code. Default is default system encoding
 #sonar.sourceEncoding=UTF-8
diff --git a/ui/web/tsconfig-sonar.json b/ui/web/tsconfig-sonar.json
new file mode 100644 (file)
index 0000000..c57b39c
--- /dev/null
@@ -0,0 +1,25 @@
+{
+  "$schema": "https://json.schemastore.org/tsconfig",
+  "extends": "@vue/tsconfig/tsconfig.dom.json",
+  "compilerOptions": {
+    "lib": ["es2023"],
+    "module": "commonjs",
+    "target": "es2022",
+    "strict": true,
+    "esModuleInterop": true,
+    "skipLibCheck": true,
+    "forceConsistentCasingInFileNames": true,
+    "moduleResolution": "node",
+    "experimentalDecorators": true,
+    "allowSyntheticDefaultImports": true,
+    "sourceMap": true,
+    "composite": true,
+    "baseUrl": ".",
+    "types": ["node", "jsdom"],
+    "paths": {
+      "@/*": ["src/*"]
+    }
+  },
+  "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue", "tests/**/*.ts", "tests/**/*.tsx"],
+  "exclude": ["node_modules"]
+}