{"library":"remark-lint-linebreak-style","title":"remark-lint-linebreak-style","description":"remark-lint rule to warn when line endings (linebreaks) violate a given or detected style. Version 4.0.1 is the current stable release. It is part of the remark-lint ecosystem and is ESM-only (Node.js 16+). Provides configurable detection of consistent line endings (unix LF or windows CRLF) and can auto-detect the first used style. Ships TypeScript type definitions. Ideal for ensuring consistent line endings across markdown files.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install remark-lint-linebreak-style"],"cli":null},"imports":["import remarkLintLinebreakStyle from 'remark-lint-linebreak-style'","import type { Options } from 'remark-lint-linebreak-style'","import type { Style } from 'remark-lint-linebreak-style'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import remarkLint from 'remark-lint'\nimport remarkLintLinebreakStyle from 'remark-lint-linebreak-style'\nimport remarkParse from 'remark-parse'\nimport remarkStringify from 'remark-stringify'\nimport {read} from 'to-vfile'\nimport {unified} from 'unified'\nimport {reporter} from 'vfile-reporter'\n\nconst file = await read('example.md')\n\nawait unified()\n  .use(remarkParse)\n  .use(remarkLint)\n  .use(remarkLintLinebreakStyle, 'unix')\n  .use(remarkStringify)\n  .process(file)\n\nconsole.error(reporter(file))","lang":"typescript","description":"Lints a markdown file for consistent unix line endings using remark-lint and this plugin. Ensure 'example.md' exists.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}