Skip to content

Commit 5426a0b

Browse files
authored
fix: sonar failure (#2766)
1 parent 791f7bd commit 5426a0b

2 files changed

Lines changed: 5 additions & 11 deletions

File tree

.github/workflows/analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
dir: frontend
7676
node_version: "22"
7777
sonar_args: >
78-
-Dsonar.exclusions=**/coverage/**,**/node_modules/**,**/*spec.ts,**/*test.tsx
78+
-Dsonar.exclusions=**/coverage/**,**/node_modules/**,**/*spec.ts,**/*test.tsx,**/routeTree.gen.ts
7979
-Dsonar.organization=bcgov-sonarcloud
8080
-Dsonar.projectKey=quickstart-openshift_frontend
8181
-Dsonar.sources=src

frontend/vite.config.ts

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { defineConfig } from 'vite'
22
import { fileURLToPath, URL } from 'node:url'
33
import react from '@vitejs/plugin-react'
4-
import { TanStackRouterVite } from '@tanstack/router-plugin/vite'
4+
import { tanstackRouter } from '@tanstack/router-plugin/vite'
55

66
// https://vitejs.dev/config/
77
export default defineConfig({
88
plugins: [
9-
TanStackRouterVite({
9+
tanstackRouter({
1010
target: 'react',
1111
autoCodeSplitting: true,
1212
}),
@@ -30,9 +30,7 @@ export default defineConfig({
3030
// https://vitejs.dev/config/shared-options.html#resolve-alias
3131
tsconfigPaths: true,
3232
alias: {
33-
'~bootstrap': fileURLToPath(
34-
new URL('./node_modules/bootstrap', import.meta.url),
35-
),
33+
'~bootstrap': fileURLToPath(new URL('./node_modules/bootstrap', import.meta.url)),
3634
},
3735
extensions: ['.js', '.json', '.jsx', '.mjs', '.ts', '.tsx', '.vue'],
3836
},
@@ -49,11 +47,7 @@ export default defineConfig({
4947
scss: {
5048
// Silence deprecation warnings caused by Bootstrap SCSS
5149
// which is out of our control.
52-
silenceDeprecations: [
53-
'color-functions',
54-
'global-builtin',
55-
'import',
56-
],
50+
silenceDeprecations: ['color-functions', 'global-builtin', 'import'],
5751
},
5852
},
5953
},

0 commit comments

Comments
 (0)