Skip to content

Commit

Permalink
fix: 🐛 fix ts type
Browse files Browse the repository at this point in the history
  • Loading branch information
vivaxy committed Oct 9, 2020
1 parent 44660d3 commit 117cf92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/commitlint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/
import load from '@commitlint/load';
import rules from '@commitlint/rules';
import { RulesConfig, RuleSeverity } from '@commitlint/types/lib/load';
import { RulesConfig, RuleConfigSeverity } from '@commitlint/types/lib/rules';
import { Commit } from '@commitlint/types/lib/parse';

class Commitlint {
Expand All @@ -31,7 +31,7 @@ class Commitlint {
}
// @ts-ignore
const [level, condition, value] = config;
if (level !== RuleSeverity.Error) {
if (level !== RuleConfigSeverity.Error) {
return [];
}
if (condition === 'never') {
Expand All @@ -51,7 +51,7 @@ class Commitlint {
}
// @ts-ignore
const [level, condition, value] = this.ruleConfigs[key];
if (level !== RuleSeverity.Error) {
if (level !== RuleConfigSeverity.Error) {
return '';
}
// @ts-ignore
Expand Down

0 comments on commit 117cf92

Please sign in to comment.