UNPKG

markuplint

Version:

A Linter for All Markup Languages.

54 lines (50 loc) 1.5 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.cli = exports.help = void 0; const meow_1 = __importDefault(require("meow")); exports.help = ` Usage $ markuplint <HTML file pathes (glob format)> $ <stdout> | markuplint Options --config-file, -c FILE_PATH Ruleset file path. --fix, Fix HTML. --format, -f FORMAT Output format. Support "JSON", "Simple" and "Standard". Default: "Standard". --no-color, Output no color. --problem-only, -p Output only problems, without passeds. --verbose Output with detailed information. --help, -h Show help. --version, -v Show version. Examples $ markuplint verifyee.html --ruleset path/to/.markuplintrc $ cat verifyee.html | markuplint `; exports.cli = meow_1.default(exports.help, { flags: { configFile: { type: 'string', alias: 'c', }, fix: { type: 'boolean', }, format: { type: 'string', alias: 'f', }, color: { type: 'boolean', default: true, }, problemOnly: { type: 'boolean', alias: 'p', }, verbose: { type: 'boolean', }, }, });