mirror of
https://github.com/zen-browser/www.git
synced 2025-07-07 17:05:32 +02:00
Add warning for noExplicitAny rule and update security advisory text
This commit is contained in:
parent
2060789de7
commit
df15be0e9c
3 changed files with 6 additions and 4 deletions
|
@ -9,6 +9,9 @@
|
|||
"recommended": true,
|
||||
"nursery": {
|
||||
"useSortedClasses": "info"
|
||||
},
|
||||
"suspicious": {
|
||||
"noExplicitAny": "warn"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
})
|
||||
|
|
|
@ -9,5 +9,5 @@
|
|||
},
|
||||
"types": ["@vitest/browser/providers/playwright"]
|
||||
},
|
||||
"suppressImplicitAnyIndexErrors": true,
|
||||
"suppressImplicitAnyIndexErrors": true
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue