File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ export const defaultHtmlValidateConfig: ConfigData = {
25
25
export type LogLevel = 'verbose' | 'warning' | 'error'
26
26
27
27
export interface ModuleOptions {
28
+ /** Explicitly set this to false to disable validation. */
29
+ enabled ?: boolean
28
30
usePrettier ?: boolean
29
31
logLevel ?: LogLevel
30
32
failOnError ?: boolean
@@ -45,6 +47,7 @@ export interface ModuleOptions {
45
47
46
48
export const DEFAULTS : Required < Omit < ModuleOptions , 'logLevel' > > & { logLevel ?: LogLevel } = {
47
49
usePrettier : false ,
50
+ enabled : true ,
48
51
failOnError : false ,
49
52
options : defaultHtmlValidateConfig ,
50
53
hookable : false ,
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export default defineNuxtModule<ModuleOptions>({
29
29
references . push ( { path : types } )
30
30
} )
31
31
32
- if ( nuxt . options . _prepare ) {
32
+ if ( nuxt . options . _prepare || moduleOptions . enabled === false ) {
33
33
return
34
34
}
35
35
You can’t perform that action at this time.
0 commit comments