{"library":"remark-lint-no-file-name-consecutive-dashes","title":"remark-lint-no-file-name-consecutive-dashes","description":"A remark-lint rule to warn when file names contain consecutive dashes. Part of the remark-lint ecosystem for linting Markdown. Current stable version 3.0.1, ESM-only, requires Node.js 16+. No options. Ships TypeScript types. Released under the unified collective. Release cadence follows remark-lint monorepo updates.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install remark-lint-no-file-name-consecutive-dashes"],"cli":null},"imports":["import remarkLintNoFileNameConsecutiveDashes from 'remark-lint-no-file-name-consecutive-dashes'","const remarkLintNoFileNameConsecutiveDashes = await import('remark-lint-no-file-name-consecutive-dashes')","import remarkLintNoFileNameConsecutiveDashes from 'https://esm.sh/remark-lint-no-file-name-consecutive-dashes@3'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { unified } from 'unified';\nimport remarkParse from 'remark-parse';\nimport remarkStringify from 'remark-stringify';\nimport remarkLint from 'remark-lint';\nimport remarkLintNoFileNameConsecutiveDashes from 'remark-lint-no-file-name-consecutive-dashes';\nimport { read } from 'to-vfile';\nimport { reporter } from 'vfile-reporter';\n\nconst file = await read('plug--ins.md');\n\nawait unified()\n  .use(remarkParse)\n  .use(remarkLint)\n  .use(remarkLintNoFileNameConsecutiveDashes)\n  .use(remarkStringify)\n  .process(file);\n\nconsole.error(reporter(file));\n// Output: 1:1: Unexpected consecutive dashes in a file name, expected `-`","lang":"javascript","description":"Shows how to use the rule in a unified pipeline to lint a file with consecutive dashes in its name.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}