create <root>/.remarkrc.mjs
import preset from '@aiou/remark-config'
const config = {
plugins: [preset]
}
export default config
require
remark-cli
add lint:md
script in package.json
{
"scripts": {
"lint:md": "remark ."
}
}
create .lintstagedrc.mjs
export default {
// Lint Markdown files with remark
'**/**/*.md': filenames => [
`remark ${filenames.join(' ')} -o`,
],
}
pnpm i @aiou/remark-config
- Setup -
pnpm i
- Build -
pnpm build
built with ❤️ by 😼