fix: resolve SonarQube and Next.js warnings
- Add tsconfig.sonar.json with moduleResolution: "node" for SonarQube compatibility - Update sonar-project.properties to use tsconfig.sonar.json - Add metadataBase to metadata export for Open Graph images 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
a09f274e50
commit
ae03eb7eed
|
|
@ -8,6 +8,7 @@ import { Providers } from "./providers";
|
||||||
const GA_TRACKING_ID = "G-E272LVVQRD";
|
const GA_TRACKING_ID = "G-E272LVVQRD";
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
|
metadataBase: new URL(process.env.NEXT_PUBLIC_FRONTEND_URL || 'https://dsp5-archi-o24a-15m-g3.fr'),
|
||||||
title: "Thé Tip Top - Jeu Concours",
|
title: "Thé Tip Top - Jeu Concours",
|
||||||
description: "Participez au grand jeu-concours Thé Tip Top et gagnez des lots exceptionnels ! 100% de tickets gagnants.",
|
description: "Participez au grand jeu-concours Thé Tip Top et gagnez des lots exceptionnels ! 100% de tickets gagnants.",
|
||||||
keywords: "thé, concours, jeu, tip top, nice, gain, lot, infuseur, coffret",
|
keywords: "thé, concours, jeu, tip top, nice, gain, lot, infuseur, coffret",
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ sonar.javascript.lcov.reportPaths=coverage/lcov.info
|
||||||
sonar.typescript.lcov.reportPaths=coverage/lcov.info
|
sonar.typescript.lcov.reportPaths=coverage/lcov.info
|
||||||
|
|
||||||
# Paramètres TypeScript
|
# Paramètres TypeScript
|
||||||
sonar.typescript.tsconfigPath=tsconfig.json
|
sonar.typescript.tsconfigPath=tsconfig.sonar.json
|
||||||
|
|
||||||
# Niveau de logs
|
# Niveau de logs
|
||||||
sonar.log.level=INFO
|
sonar.log.level=INFO
|
||||||
|
|
|
||||||
41
tsconfig.sonar.json
Normal file
41
tsconfig.sonar.json
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"target": "ES2017",
|
||||||
|
"lib": [
|
||||||
|
"dom",
|
||||||
|
"dom.iterable",
|
||||||
|
"esnext"
|
||||||
|
],
|
||||||
|
"allowJs": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"strict": true,
|
||||||
|
"noEmit": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"module": "esnext",
|
||||||
|
"moduleResolution": "node",
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"isolatedModules": true,
|
||||||
|
"jsx": "preserve",
|
||||||
|
"incremental": true,
|
||||||
|
"plugins": [
|
||||||
|
{
|
||||||
|
"name": "next"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"paths": {
|
||||||
|
"@/*": [
|
||||||
|
"./*"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"next-env.d.ts",
|
||||||
|
"**/*.ts",
|
||||||
|
"**/*.tsx",
|
||||||
|
"**/*.mts"
|
||||||
|
],
|
||||||
|
"exclude": [
|
||||||
|
"node_modules",
|
||||||
|
".next"
|
||||||
|
]
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user