File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -67,18 +67,18 @@ const report = (context, options = {}) => {
67
67
const childStr = Array . isArray ( shortcut . node . children ) && shortcut . node . children [ 0 ] ;
68
68
if ( pairDefinition && childStr ) {
69
69
// report fixable error
70
- report ( childStr , new RuleError ( `Should use sorted number for identifier` , {
70
+ report ( childStr , new RuleError ( `Should use incremental number for identifier` , {
71
71
fix : fixer . replaceText ( childStr , expectedShortcutIdentifier )
72
72
} ) ) ;
73
73
const pairDefinitionReplace = `[^${ pairDefinition . identifier } ]` ;
74
- report ( pairDefinition . node , new RuleError ( `Should use sorted number for definition` , {
74
+ report ( pairDefinition . node , new RuleError ( `Should use incremental number for definition` , {
75
75
fix : fixer . replaceTextRange ( [ 0 , pairDefinitionReplace . length - 1 ] , `[^${ expectedSortedNumber } ]` )
76
76
} ) ) ;
77
77
} else {
78
78
// report error
79
- report ( shortcut . node , new RuleError ( `Should use use sorted number for identifier` ) ) ;
79
+ report ( shortcut . node , new RuleError ( `Should use use incremental number for identifier` ) ) ;
80
80
if ( pairDefinition ) {
81
- report ( pairDefinition . node , new RuleError ( `Should use use sorted number for definition` ) ) ;
81
+ report ( pairDefinition . node , new RuleError ( `Should use use incremental number for definition` ) ) ;
82
82
}
83
83
}
84
84
} ) ;
You can’t perform that action at this time.
0 commit comments