Skip to content

Commit

Permalink
fix: useSchemastoreCatalog is enabled by default according to docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Mar 23, 2024
1 parent f65a640 commit f25729d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rules/no-invalid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,8 @@ export default createRule("no-invalid", {
relativeFilename: string,
): Validator[] | null {
const option = context.options[0] || {};
if (!option.useSchemastoreCatalog) {
const useSchemastoreCatalog = option.useSchemastoreCatalog !== false;
if (!useSchemastoreCatalog) {
return null;
}

Expand Down

0 comments on commit f25729d

Please sign in to comment.