Skip to content

Commit

Permalink
feat: change priority to be optional config to override default
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcarman committed May 22, 2024
1 parent e20a221 commit bb54828
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/common/config-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export async function readConfigFile(configFile: string): Promise<ConfigFile | u
yup.object().shape({
name: yup.string().required(),
active: yup.boolean().required(),
priority: yup.number().required(),
priority: yup.number(),
property: yup.object().shape({
name: yup.string(),
value: yup.mixed(),
Expand Down
2 changes: 0 additions & 2 deletions src/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ export abstract class RuleClass {
case 3:
this.level = 'note';
break;
default:
this.level = 'warning';
}
}

Expand Down

0 comments on commit bb54828

Please sign in to comment.