From: Jérôme Benoit Date: Tue, 18 Apr 2023 18:35:53 +0000 (+0200) Subject: fix: fix sonarcloud analysis X-Git-Tag: v2.4.11~32 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=2092c35fc1873fb746244f15af3478e246bb4b3b;p=poolifier.git fix: fix sonarcloud analysis Signed-off-by: Jérôme Benoit --- 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"] }