Verbessere Codequalität und Sicherheit durch Refactoring, Hinzufügen von ESLint-Regeln und Aktualisierung der OSV-Scanner-Konfiguration
This commit is contained in:
@@ -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'
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user