@lobehub/remarklint-config
v2.0.2
Published
Remarklint configuration for LobeHub projects
Keywords
Readme
Remarklint configuration for LobeHub projects
Features
- Markdown style guide enforcement
- GFM (GitHub Flavored Markdown) support
- Frontmatter support
- TOC (Table of Contents) generation
- CJK text formatting with pangu
- Write-good writing style suggestions
- Unused definition cleanup
Installation
pnpm add -D @lobehub/remarklint-config remark-cliUsage
Create .remarkrc.js in your project root:
import config from '@lobehub/remarklint-config';
export default config;Or for CommonJS:
module.exports = require('@lobehub/remarklint-config').default;Run
# Check
pnpm remark . --quiet
# Fix
pnpm remark . --outputNPM Scripts
{
"scripts": {
"lint:md": "remark . --quiet",
"lint:md:fix": "remark . --output"
}
}Included Plugins
Presets
remark-preset-lint-consistent- Consistent styleremark-preset-lint-recommended- Recommended rulesremark-preset-lint-markdown-style-guide- Style guide
Features
remark-gfm- GitHub Flavored Markdownremark-frontmatter- YAML frontmatterremark-toc- Table of Contentsremark-pangu- CJK text spacing
Linting
remark-lint-*- Various lint rulesremark-lint-write-good- Writing style suggestions
Transformers
remark-remove-unused-definitions- Cleanupremark-sort-definitions- Sort definitions
Requirements
- Node.js >= 18
- remark >= 15.0.0
- remark-cli >= 12.0.0
License
MIT © LobeHub
