@textlint/kernel
Version:
textlint kernel is core logic by pure JavaScript.
22 lines • 880 B
JavaScript
// LICENSE : MIT
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TextlintFixableRuleDescriptor = void 0;
const rule_creator_helper_js_1 = require("./rule-creator-helper.js");
const TextlintLintableRuleDescriptor_js_1 = require("./TextlintLintableRuleDescriptor.js");
/**
* Textlint Fixable Rule Descriptor.
* It is inherit **Rule** Descriptor and add fixer() method.
* It handle RuleCreator and RuleOption.
*/
class TextlintFixableRuleDescriptor extends TextlintLintableRuleDescriptor_js_1.TextlintLintableRuleDescriptor {
/**
* Return fixer function
* You should check hasFixer before call this.
*/
get fixer() {
return (0, rule_creator_helper_js_1.getFixer)(this.rule);
}
}
exports.TextlintFixableRuleDescriptor = TextlintFixableRuleDescriptor;
//# sourceMappingURL=TextlintFixableRuleDescriptor.js.map