fix: fix sonarcloud analysis
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 18 Apr 2023 18:35:53 +0000 (20:35 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 18 Apr 2023 18:35:53 +0000 (20:35 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.eslintrc.js
tsconfig.development.json
tsconfig.eslint.json [new file with mode: 0644]
tsconfig.json
tsconfig.production.json

index 0a343d6b4e4f5899bd8b7d4f3a80aa541d602c0b..80dcda2b7212d88878c7f2f65b426896e9a02a99 100644 (file)
@@ -85,7 +85,7 @@ module.exports = defineConfig({
       plugins: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
       parser: '@typescript-eslint/parser',
       parserOptions: {
-        project: './tsconfig.json'
+        project: './tsconfig.eslint.json'
       },
       extends: [
         'plugin:@typescript-eslint/eslint-recommended',
index 87915c1e67db042c15cc271103d0070baf6c54d9..3538a147d557ed6650eb4a3e61a080ce2513636e 100644 (file)
@@ -1,7 +1,8 @@
 {
   "extends": "./tsconfig.json",
   "compilerOptions": {
-    "sourceMap": true
+    "sourceMap": true,
+    "verbatimModuleSyntax": true
   },
   "exclude": ["node_modules", "lib", "examples/typescript/**/*.ts"]
 }
diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json
new file mode 100644 (file)
index 0000000..de29672
--- /dev/null
@@ -0,0 +1,6 @@
+{
+  "extends": "./tsconfig.json",
+  "compilerOptions": {
+    "verbatimModuleSyntax": true
+  }
+}
index fcd4c45ee6f79f0de9fc9d5ff74e573f9cf0baf1..9f8db467725e865753b67aef5091215f27964965 100644 (file)
@@ -5,8 +5,7 @@
     "outDir": "lib",
     "esModuleInterop": true,
     "declaration": true,
-    "strict": true,
-    "verbatimModuleSyntax": true
+    "strict": true
   },
   "include": ["**/*.ts"],
   "exclude": ["node_modules", "lib"]
index 5eca91e41fca03590f023da055054ee476f0544b..fcf4e71ea840c9f0aa39fdd42d98e771a8d7a6a5 100644 (file)
@@ -1,4 +1,7 @@
 {
   "extends": "./tsconfig.json",
+  "compilerOptions": {
+    "verbatimModuleSyntax": true
+  },
   "exclude": ["node_modules", "lib", "examples/typescript/**/*.ts"]
 }