From 8f10a218ecdd30bd0e4466df44948045842066c9 Mon Sep 17 00:00:00 2001 From: Quentin Date: Mon, 2 Dec 2024 18:06:31 +0100 Subject: [PATCH] React/ESLint: enable @typescript-eslint/no-unsafe-argument --- .../client/react/core/domain/ReactCoreModulesFactory.java | 1 - ...Test.shouldBuildModuleWithStyle.eslint.config.js.approved.txt | 1 - 2 files changed, 2 deletions(-) diff --git a/src/main/java/tech/jhipster/lite/generator/client/react/core/domain/ReactCoreModulesFactory.java b/src/main/java/tech/jhipster/lite/generator/client/react/core/domain/ReactCoreModulesFactory.java index ea66e65ff9d..9c05f41dcae 100644 --- a/src/main/java/tech/jhipster/lite/generator/client/react/core/domain/ReactCoreModulesFactory.java +++ b/src/main/java/tech/jhipster/lite/generator/client/react/core/domain/ReactCoreModulesFactory.java @@ -144,7 +144,6 @@ private Consumer patchEslintConfig(JHipsterModuleProperti """ \t\t\t'react/react-in-jsx-scope': 'off', \t\t\t'@typescript-eslint/no-explicit-any': 'off', - \t\t\t'@typescript-eslint/no-unsafe-argument': 'off', \t\t\t'@typescript-eslint/await-thenable': 'off', \t\t\t'@typescript-eslint/consistent-type-imports': 'error', \t\t\t'@typescript-eslint/no-misused-promises': [ diff --git a/src/test/resources/tech/jhipster/lite/generator/client/react/core/domain/ReactCoreModulesFactoryTest.shouldBuildModuleWithStyle.eslint.config.js.approved.txt b/src/test/resources/tech/jhipster/lite/generator/client/react/core/domain/ReactCoreModulesFactoryTest.shouldBuildModuleWithStyle.eslint.config.js.approved.txt index 35443b9843a..8799c402da2 100644 --- a/src/test/resources/tech/jhipster/lite/generator/client/react/core/domain/ReactCoreModulesFactoryTest.shouldBuildModuleWithStyle.eslint.config.js.approved.txt +++ b/src/test/resources/tech/jhipster/lite/generator/client/react/core/domain/ReactCoreModulesFactoryTest.shouldBuildModuleWithStyle.eslint.config.js.approved.txt @@ -32,7 +32,6 @@ export default typescript.config( rules: { 'react/react-in-jsx-scope': 'off', '@typescript-eslint/no-explicit-any': 'off', - '@typescript-eslint/no-unsafe-argument': 'off', '@typescript-eslint/await-thenable': 'off', '@typescript-eslint/consistent-type-imports': 'error', '@typescript-eslint/no-misused-promises': [