File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
apps/oxlint/src-js/plugins Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ async function loadPluginImpl(path: string): Promise<PluginDetails> {
131131 let { fixable } = ruleMeta ;
132132 if ( fixable === void 0 ) {
133133 fixable = null ;
134- } else if ( fixable !== 'code' && fixable !== 'whitespace' ) {
134+ } else if ( fixable !== null && fixable !== 'code' && fixable !== 'whitespace' ) {
135135 throw new TypeError ( 'Invalid `meta.fixable`' ) ;
136136 }
137137
Original file line number Diff line number Diff line change @@ -43,6 +43,6 @@ export interface EnterExit {
4343// Rule metadata.
4444// TODO: Fill in all properties.
4545export interface RuleMeta {
46- fixable ?: 'code' | 'whitespace' ;
46+ fixable ?: 'code' | 'whitespace' | null | undefined ;
4747 [ key : string ] : unknown ;
4848}
You can’t perform that action at this time.
0 commit comments