From: Jérôme Benoit Date: Mon, 1 May 2023 19:49:17 +0000 (+0200) Subject: build(ci): fix sonar scanner run X-Git-Tag: v1.2.12~22 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=f3e62a22aaadb0d95cc0a39213e85c8a0042954f;p=e-mobility-charging-stations-simulator.git build(ci): fix sonar scanner run Signed-off-by: Jérôme Benoit --- 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"] +}