Repository: jhipster/jhipster-lite
Pull request #11434 (2024-11-25 21:07:19)

Clients: Apply Prettier


Patch:
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 b29a12265..2989122e0 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
@@ -151,7 +151,7 @@ public class ReactCoreModulesFactory {
               \t\t\t\t'error',
               \t\t\t\t{
               \t\t\t\t\tchecksVoidReturn: false,
-              \t\t\t\t}
+              \t\t\t\t},
               \t\t\t],\
               """.replace("\t", properties.indentation().spaces())
             )
diff --git a/src/main/resources/generator/client/angular/security/jwt/src/main/webapp/app/auth/auth-jwt.service.ts.mustache b/src/main/resources/generator/client/angular/security/jwt/src/main/webapp/app/auth/auth-jwt.service.ts.mustache
index d453c19aa..5c5b0ac18 100644
--- a/src/main/resources/generator/client/angular/security/jwt/src/main/webapp/app/auth/auth-jwt.service.ts.mustache
+++ b/src/main/resources/generator/client/angular/security/jwt/src/main/webapp/app/auth/auth-jwt.service.ts.mustache
@@ -7,7 +7,7 @@ import { Login } from '../login/login.model';
 
 interface JwtToken {
   id_token: string;
-};
+}
 
 @Injectable({ providedIn: 'root' })
 export class AuthServerProvider {


Test patch:
diff --git a/src/main/resources/generator/typescript/vitest.config.ts.mustache b/src/main/resources/generator/typescript/vitest.config.ts.mustache
index 4b6820a5b..8c7eb8ad2 100644
--- a/src/main/resources/generator/typescript/vitest.config.ts.mustache
+++ b/src/main/resources/generator/typescript/vitest.config.ts.mustache
@@ -30,7 +30,7 @@ export default defineConfig({
       include: ['src/main/webapp/**/*.ts?(x)'],
       exclude: [
         // keep this comment to be able to apply other front module after prettier format
-        ...configDefaults.coverage.exclude as string[],
+        ...(configDefaults.coverage.exclude as string[]),
       ],
       provider: 'istanbul',
       reportsDirectory: '{{projectBuildDirectory}}/test-results/',
diff --git a/src/test/resources/projects/react-app/vitest.config.ts.template b/src/test/resources/projects/react-app/vitest.config.ts.template
index b75e04ba3..119ef8f5c 100644
--- a/src/test/resources/projects/react-app/vitest.config.ts.template
+++ b/src/test/resources/projects/react-app/vitest.config.ts.template
@@ -30,7 +30,7 @@ export default defineConfig({
       },
       include: ['src/main/webapp/**/*.ts?(x)'],
       exclude: [
-        ...configDefaults.coverage.exclude as string[],
+        ...(configDefaults.coverage.exclude as string[]),
         'src/main/webapp/app/index.tsx',
       ],
       provider: 'istanbul',
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 5897a041c..35443b984 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
@@ -39,7 +39,7 @@ export default typescript.config(
         'error',
         {
           checksVoidReturn: false,
-        }
+        },
       ],
     },
   },
diff --git a/src/test/resources/tech/jhipster/lite/generator/client/react/core/domain/ReactCoreModulesFactoryTest.shouldBuildModuleWithStyle.vitest.config.ts.approved.txt b/src/test/resources/tech/jhipster/lite/generator/client/react/core/domain/ReactCoreModulesFactoryTest.shouldBuildModuleWithStyle.vitest.config.ts.approved.txt
index fd5d83800..997afac7e 100644
--- a/src/test/resources/tech/jhipster/lite/generator/client/react/core/domain/ReactCoreModulesFactoryTest.shouldBuildModuleWithStyle.vitest.config.ts.approved.txt
+++ b/src/test/resources/tech/jhipster/lite/generator/client/react/core/domain/ReactCoreModulesFactoryTest.shouldBuildModuleWithStyle.vitest.config.ts.approved.txt
@@ -31,7 +31,7 @@ export default defineConfig({
       include: ['src/main/webapp/**/*.ts?(x)'],
       exclude: [
         // keep this comment to be able to apply other front module after prettier format
-        ...configDefaults.coverage.exclude as string[],
+        ...(configDefaults.coverage.exclude as string[]),
         'src/main/webapp/app/injections.ts',
         'src/main/webapp/app/index.tsx',
       ],
diff --git a/src/test/resources/tech/jhipster/lite/generator/client/vue/core/domain/VueModulesFactoryTest.shouldCreateVueModule.vitest.config.ts.approved.txt b/src/test/resources/tech/jhipster/lite/generator/client/vue/core/domain/VueModulesFactoryTest.shouldCreateVueModule.vitest.config.ts.approved.txt
index c31c74661..a97253440 100644
--- a/src/test/resources/tech/jhipster/lite/generator/client/vue/core/domain/VueModulesFactoryTest.shouldCreateVueModule.vitest.config.ts.approved.txt
+++ b/src/test/resources/tech/jhipster/lite/generator/client/vue/core/domain/VueModulesFactoryTest.shouldCreateVueModule.vitest.config.ts.approved.txt
@@ -31,7 +31,7 @@ export default defineConfig({
       include: ['src/main/webapp/**/*.ts?(x)'],
       exclude: [
         // keep this comment to be able to apply other front module after prettier format
-        ...configDefaults.coverage.exclude as string[],
+        ...(configDefaults.coverage.exclude as string[]),
         'src/main/webapp/app/main.ts',
         'src/main/webapp/app/injections.ts',
         'src/main/webapp/app/router.ts',