{"library":"remark-lint-no-empty-sections","title":"remark-lint-no-empty-sections","description":"A remark-lint rule that warns when a markdown section heading has no content before the next heading of the same or higher level. This package (v4.0.0) is part of the remark-lint ecosystem and is specifically designed for enforcing formatting guidelines in free-programming-books. It is released on demand, with no fixed cadence. Unlike generic lint rules, it targets empty sections, which can occur when headings are split incorrectly or content is missing. It integrates seamlessly with remark-cli.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install remark-lint-no-empty-sections"],"cli":{"name":"remark","version":null}},"imports":["import remarkLintNoEmptySections from 'remark-lint-no-empty-sections'","import { remark } from 'remark'","import remarkLintNoEmptySections from 'remark-lint-no-empty-sections'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { remark } from 'remark';\nimport remarkLint from 'remark-lint';\nimport remarkLintNoEmptySections from 'remark-lint-no-empty-sections';\n\nconst result = await remark()\n  .use(remarkLint)\n  .use(remarkLintNoEmptySections)\n  .process('# Title\\n\\n## Subsection\\n\\nSome content.');\n\nconsole.log(result.messages);\n// []\n\nconst result2 = await remark()\n  .use(remarkLint)\n  .use(remarkLintNoEmptySections)\n  .process('# Title\\n\\n## Subsection\\n\\n### Empty Sub-sub');\n\nconsole.log(result2.messages);\n// [ [1:1-31:1] Empty section ]","lang":"typescript","description":"Shows how to use the plugin programmatically with ESM imports, including an example that triggers a warning.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}