aboutsummaryrefslogtreecommitdiffstats
path: root/language-web
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2021-10-06 02:02:33 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2021-10-06 02:02:33 +0200
commit7a82febe727c6281a81157e99d18b563ec5e776b (patch)
tree2ae42b1d87fa4856e51a0e906c5d169e73d7f472 /language-web
parentci(web): add eslint and stylelint to sonar (diff)
downloadrefinery-7a82febe727c6281a81157e99d18b563ec5e776b.tar.gz
refinery-7a82febe727c6281a81157e99d18b563ec5e776b.tar.zst
refinery-7a82febe727c6281a81157e99d18b563ec5e776b.zip
ci(web): no typescript 4.4 features in Sonar
See https://github.com/SonarSource/SonarJS/issues/2802 and https://community.sonarsource.com/t/sonarcloud-not-picking-up-typescript-files/50832
Diffstat (limited to 'language-web')
-rw-r--r--language-web/build.gradle2
-rw-r--r--language-web/tsconfig.sonar.json19
2 files changed, 21 insertions, 0 deletions
diff --git a/language-web/build.gradle b/language-web/build.gradle
index 526ba2da..15d743b9 100644
--- a/language-web/build.gradle
+++ b/language-web/build.gradle
@@ -145,4 +145,6 @@ sonarqube.properties {
145 property 'sonar.nodejs.executable', "${nodeDirectory}/bin/node" 145 property 'sonar.nodejs.executable', "${nodeDirectory}/bin/node"
146 property 'sonar.eslint.reportPaths', "${buildDir}/eslint.json" 146 property 'sonar.eslint.reportPaths', "${buildDir}/eslint.json"
147 property 'sonar.css.stylelint.reportPaths', "${buildDir}/stylelint.json" 147 property 'sonar.css.stylelint.reportPaths', "${buildDir}/stylelint.json"
148 // SonarJS does not pick up typescript files with `exactOptionalPropertyTypes`
149 property 'sonar.typescript.tsconfigPath', 'tsconfig.sonar.json'
148} 150}
diff --git a/language-web/tsconfig.sonar.json b/language-web/tsconfig.sonar.json
new file mode 100644
index 00000000..1cc74f23
--- /dev/null
+++ b/language-web/tsconfig.sonar.json
@@ -0,0 +1,19 @@
1{
2 "compilerOptions": {
3 "target": "ES2020",
4 "module": "ES2020",
5 "moduleResolution": "node",
6 "paths": {
7 "xtext/*": ["./src/main/js/xtext/*"]
8 },
9 "esModuleInterop": true,
10 "allowSyntheticDefaultImports": true,
11 "jsx": "react",
12 "strict": true,
13 "noImplicitOverride": true,
14 "noImplicitReturns": true,
15 "noEmit": true
16 },
17 "include": ["./src/main/js/**/*"],
18 "exclude": ["./src/main/js/xtext/**/*"]
19}