Skip to content

Commit d0cc7d4

Browse files
committed
fix: update message correctly
1 parent 3b945a5 commit d0cc7d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/textlint-rule-footnote-order.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,18 @@ const report = (context, options = {}) => {
6767
const childStr = Array.isArray(shortcut.node.children) && shortcut.node.children[0];
6868
if (pairDefinition && childStr) {
6969
// 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`, {
7171
fix: fixer.replaceText(childStr, expectedShortcutIdentifier)
7272
}));
7373
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`, {
7575
fix: fixer.replaceTextRange([0, pairDefinitionReplace.length - 1], `[^${expectedSortedNumber}]`)
7676
}));
7777
} else {
7878
// 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`));
8080
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`));
8282
}
8383
}
8484
});

0 commit comments

Comments
 (0)