UNPKG

@lobehub/lint

Version:

<a name="readme-top"></a><div align="center">

78 lines (76 loc) 3.17 kB
var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/remarklint/index.ts var remarklint_exports = {}; __export(remarklint_exports, { default: () => remarklint_default }); module.exports = __toCommonJS(remarklint_exports); var import_remarkGfmHighlight = require("./remarkGfmHighlight"); var import_remarkTextrPlugins = require("./remarkTextrPlugins"); var remarklint_default = { $schema: "https://json.schemastore.org/remarkrc", plugins: [ "remark-gfm", "remark-frontmatter", "remark-pangu", ["remark-textr", { plugins: [import_remarkTextrPlugins.replaceNBSP] }], import_remarkGfmHighlight.remarkGfmHighlight, // ----- Plugin ----------------------------------------------------------- "remark-sort-definitions", ["remark-toc", { heading: "TOC", maxDepth: 3 }], "remark-remove-unused-definitions", // ----- Presets ----------------------------------------------------------- "remark-preset-lint-markdown-style-guide", "remark-preset-lint-recommended", "remark-preset-lint-consistent", // ----- Built-In ---------------------------------------------------------- "remark-lint-checkbox-content-indent", "remark-lint-linebreak-style", "remark-lint-no-duplicate-headings-in-section", "remark-lint-no-empty-url", "remark-lint-no-heading-indent", "remark-lint-no-heading-like-paragraph", "remark-lint-no-paragraph-content-indent", "remark-lint-no-reference-like-url", "remark-lint-no-tabs", "remark-lint-no-unneeded-full-reference-image", "remark-lint-no-unneeded-full-reference-link", // ----- External ---------------------------------------------------------- "remark-lint-no-empty-sections", "remark-lint-write-good", "remark-lint-frontmatter-schema", // ----- Overrides --------------------------------------------------------- ["remark-lint-list-item-indent", "space"], ["remark-lint-list-item-spacing", { checkBlanks: true }], ["remark-lint-no-duplicate-headings", false], ["remark-lint-no-file-name-irregular-characters", String.raw`\.a-zA-Z0-9-_`], ["remark-lint-no-file-name-mixed-case", false], ["remark-lint-no-literal-urls", false], ["remark-lint-no-shell-dollars", false], ["remark-lint-ordered-list-marker-value", false] ], settings: { bullet: "-", emphasis: "*", fences: true, rule: "-", strong: "*", tightDefinitions: true } };