From 2092c35fc1873fb746244f15af3478e246bb4b3b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 18 Apr 2023 20:35:53 +0200 Subject: [PATCH] fix: fix sonarcloud analysis MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .eslintrc.js | 2 +- tsconfig.development.json | 3 ++- tsconfig.eslint.json | 6 ++++++ tsconfig.json | 3 +-- tsconfig.production.json | 3 +++ 5 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 tsconfig.eslint.json diff --git a/.eslintrc.js b/.eslintrc.js index 0a343d6b..80dcda2b 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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', diff --git a/tsconfig.development.json b/tsconfig.development.json index 87915c1e..3538a147 100644 --- a/tsconfig.development.json +++ b/tsconfig.development.json @@ -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 index 00000000..de296721 --- /dev/null +++ b/tsconfig.eslint.json @@ -0,0 +1,6 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "verbatimModuleSyntax": true + } +} diff --git a/tsconfig.json b/tsconfig.json index fcd4c45e..9f8db467 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,8 +5,7 @@ "outDir": "lib", "esModuleInterop": true, "declaration": true, - "strict": true, - "verbatimModuleSyntax": true + "strict": true }, "include": ["**/*.ts"], "exclude": ["node_modules", "lib"] diff --git a/tsconfig.production.json b/tsconfig.production.json index 5eca91e4..fcf4e71e 100644 --- a/tsconfig.production.json +++ b/tsconfig.production.json @@ -1,4 +1,7 @@ { "extends": "./tsconfig.json", + "compilerOptions": { + "verbatimModuleSyntax": true + }, "exclude": ["node_modules", "lib", "examples/typescript/**/*.ts"] } -- 2.34.1