@flixlix/config-remark
v0.0.1
Published
Shared remark config
Downloads
5
Readme
Shared remark configuration
The purpose of the remark is linting, formatting and autogenerate contents of markdown files (.md).
Contents
Setup
Add workspace reference to
@flixlix/config-remarkand its peer dependencies:pnpm add -w @flixlix/config-remark remark remark-cliAdd remark configuration file:
// .remarkrc.mjs export { default } from '@flixlix/config-remark';Add remark ignore patterns file:
# .remarkignore node_modules/ # Next ignore patterns .next/ .build/ .coverage/ # Custom ignore patterns ...Add remark scripts:
// package.json "scripts": { ... "remark": "remark", "remark:fix": "pnpm remark --output --" ... }
Automation
- Setup ➡ remark vscode plugin to integrate
remarkwith vscode environment.
Usage
Automatic validation file with
remarkon save.Automatic validation of staged files with
remarkon commit.Manual usage from command line:
pnpm remark . pnpm remark:fix .
Donation
If you found this project helpful, consider
buying me a coffee, donate by paypal or just leave a star⭐
Thanks for your support, it is much appreciated!
