A Prettier plugin that enforces a maximum of one sentence per line in Markdown files. Current stable version is 0.2.3, with frequent releases. It uses the sentences-per-line core to parse sentence boundaries and supports custom abbreviations. Unlike the ESLint or markdownlint counterparts, this plugin integrates directly into the Prettier formatting pipeline, automatically fixing line breaks. It requires Prettier 3 and ships with TypeScript declarations.
npm install prettier-plugin-sentences-per-lineVerified import paths — ran on the pinned version, not inferred.
Configures Prettier with the plugin and an additional abbreviation, then shows formatting result splitting multi-sentence lines.
Upgrade Prettier to version 3 or later.
Use dynamic import() or switch to ESM. If using module.require, it will error.
Use the exact key name as documented.
Ensure your file extensions are .md or configure Prettier overrides.
Run `npm install -D prettier-plugin-sentences-per-line` and ensure it's in devDependencies.
Convert your Prettier config to ESM (use .prettierrc.mjs) or use dynamic import: `module.exports = { plugins: [await import('prettier-plugin-sentences-per-line')] }`