mirror of
https://github.com/theoludwig/html-w3c-validator.git
synced 2025-05-21 23:21:29 +02:00
BREAKING CHANGE: change default validator severities: "warning" and "error"
This commit is contained in:
@ -104,7 +104,10 @@ export class HTMLValidatorCommand extends Command {
|
||||
`Invalid config file at "${configPath}". Please add URLs or files.`
|
||||
)
|
||||
}
|
||||
const configSeverities: Severity[] = config.severities ?? ['error']
|
||||
const configSeverities: Severity[] = config.severities ?? [
|
||||
'warning',
|
||||
'error'
|
||||
]
|
||||
for (const severity of configSeverities) {
|
||||
if (!severities.includes(severity)) {
|
||||
throw new Error(
|
||||
|
Reference in New Issue
Block a user