aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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}