From f3e62a22aaadb0d95cc0a39213e85c8a0042954f Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 1 May 2023 21:49:17 +0200 Subject: [PATCH] build(ci): fix sonar scanner run MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- ui/web/sonar-project.properties | 2 ++ ui/web/tsconfig-sonar.json | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 ui/web/tsconfig-sonar.json diff --git a/ui/web/sonar-project.properties b/ui/web/sonar-project.properties index 4c6b4f69..e2f93bdc 100644 --- a/ui/web/sonar-project.properties +++ b/ui/web/sonar-project.properties @@ -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 index 00000000..c57b39c5 --- /dev/null +++ b/ui/web/tsconfig-sonar.json @@ -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"] +} -- 2.34.1