Use the package manager pnpm to install the Remark configuration and related packages in the root project.
pnpm add --save-dev --save-exact --workspace-root --workspace remark-config
pnpm add --save-dev --save-exact --workspace-root remark-cli
Create a Remark configuration file in ES module format. Import the configuration from remark-config and export as default.
import baseConfig from 'remark-config';
export default baseConfig;
Remark can be integrated with editors, executed in the Git pre-commit hook to check or format staged files, and the CLI tool can be used directly or in scripts.
pnpm remark