Add warning for noExplicitAny rule and update security advisory text

This commit is contained in:
Mr. M 2025-05-19 01:58:21 +02:00
parent 2060789de7
commit df15be0e9c
No known key found for this signature in database
GPG key ID: 6292C4C8F8652B18
3 changed files with 6 additions and 4 deletions

View file

@ -9,6 +9,9 @@
"recommended": true,
"nursery": {
"useSortedClasses": "info"
},
"suspicious": {
"noExplicitAny": "warn"
}
}
},

View file

@ -35,13 +35,12 @@ if (prevReleaseNote && !isTwilight) {
const isLatest = currentReleaseIndex === 0
const listItems = {} as any
// biome-ignore lint/suspicious/noExplicitAny:
const generateItems = (items: any, type: string) => {
if (!items) return
if (!listItems[type]) {
listItems[type] = []
}
// biome-ignore lint/complexity/noForEach:
// biome-ignore lint/complexity/noForEach: We dont need to use a for loop here
items.forEach((item: any) => {
switch (type) {
case 'feature':
@ -68,7 +67,7 @@ const generateItems = (items: any, type: string) => {
listItems[type].push({
type: 'security',
link: {
text: 'Security Advisory',
text: 'Various security fixes',
href: item,
},
})

View file

@ -9,5 +9,5 @@
},
"types": ["@vitest/browser/providers/playwright"]
},
"suppressImplicitAnyIndexErrors": true,
"suppressImplicitAnyIndexErrors": true
}