Verbessere Codequalität und Sicherheit durch Refactoring, Hinzufügen von ESLint-Regeln und Aktualisierung der OSV-Scanner-Konfiguration
All checks were successful
Code Analysis and Production Deploy / analyze (push) Successful in 6m45s
Code Analysis and Production Deploy / deploy-production (push) Has been skipped
Code Analysis and Production Deploy / deploy-test (push) Successful in 2m57s

This commit is contained in:
Torsten Schulz (local)
2026-07-17 09:08:42 +02:00
parent d260f00756
commit 30465c7833
25 changed files with 40 additions and 53 deletions

View File

@@ -25,14 +25,19 @@ export default [
'useHead': 'readonly',
'useFetch': 'readonly',
'definePageMeta': 'readonly',
'defineNuxtPlugin': 'readonly',
'defineNitroPlugin': 'readonly',
'defineNuxtRouteMiddleware': 'readonly',
'defineEventHandler': 'readonly',
'readBody': 'readonly',
'getMethod': 'readonly',
'getCookie': 'readonly',
'setCookie': 'readonly',
'deleteCookie': 'readonly',
'getHeader': 'readonly',
'getRequestURL': 'readonly',
'setHeader': 'readonly',
'setResponseStatus': 'readonly',
'getRouterParam': 'readonly',
'getQuery': 'readonly',
'sendStream': 'readonly',
@@ -66,8 +71,9 @@ export default [
'vue/multi-word-component-names': 'off',
'vue/no-v-html': 'warn',
'no-unused-vars': ['warn', {
argsIgnorePattern: '^_',
varsIgnorePattern: '^_'
argsIgnorePattern: '^_|^event$',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_|^e$|^err$|^error$'
}],
'vue/no-unused-vars': ['warn', {
ignorePattern: '^_'
@@ -97,6 +103,18 @@ export default [
'tests/**',
'scripts/**'
]
},
{
files: [
'pages/cms/newsletter.vue',
'pages/verein/geschichte.vue',
'pages/verein/satzung.vue',
'pages/verein/tt-regeln.vue',
'pages/verein/ueber-uns.vue'
],
rules: {
'vue/no-v-html': 'off'
}
}
]