{"id":16095707,"url":"https://github.com/vhf/remark-lint-no-empty-sections","last_synced_at":"2025-03-17T17:31:15.715Z","repository":{"id":3029496,"uuid":"48228080","full_name":"vhf/remark-lint-no-empty-sections","owner":"vhf","description":"remark-lint-no-empty-sections","archived":false,"fork":false,"pushed_at":"2022-12-06T04:57:59.000Z","size":283,"stargazers_count":9,"open_issues_count":6,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-13T16:35:12.433Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vhf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-18T10:02:34.000Z","updated_at":"2022-10-23T00:41:36.000Z","dependencies_parsed_at":"2023-01-13T12:14:33.606Z","dependency_job_id":null,"html_url":"https://github.com/vhf/remark-lint-no-empty-sections","commit_stats":null,"previous_names":["vhf/mdast-lint-empty-sections"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vhf%2Fremark-lint-no-empty-sections","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vhf%2Fremark-lint-no-empty-sections/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vhf%2Fremark-lint-no-empty-sections/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vhf%2Fremark-lint-no-empty-sections/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vhf","download_url":"https://codeload.github.com/vhf/remark-lint-no-empty-sections/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243872407,"owners_count":20361470,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-09T17:08:07.152Z","updated_at":"2025-03-17T17:31:15.382Z","avatar_url":"https://github.com/vhf.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# remark-lint-no-empty-sections [![Build Status](https://travis-ci.org/vhf/remark-lint-no-empty-sections.svg?branch=master)](https://travis-ci.org/vhf/remark-lint-no-empty-sections)\n\nThis [remark-lint](https://github.com/wooorm/remark-lint) rule was created for [free-programming-books-lint](https://github.com/vhf/free-programming-books-lint) to enforce [free-programming-books](https://github.com/vhf/free-programming-books) [formatting guidelines](https://github.com/vhf/free-programming-books/blob/master/CONTRIBUTING.md#formatting).\n\nThis rule checks that every `([#]+)heading` has some content. This content can be anything: a lower-level heading, a higher-level heading, text, list, etc. It will warn when it detects an `n`-level heading without content followed by another `n`-level heading.\n\n## Examples\n\n```markdown\n\u003c!-- Invalid --\u003e\n\n# A\n\n## B (this section is empty!)\n```\n\n```markdown\n\u003c!-- Invalid --\u003e\n\n# A\n\n## B (this section is empty!)\n\n## C\n\nSome content.\n```\n\n```markdown\n\u003c!-- Valid --\u003e\n\n# A\n\n## C\n\nSome content.\n```\n\n## Using the rule\n\n### Via `.remarkrc`\n\n```bash\nnpm install -g remark-cli\nnpm install remark-lint remark-lint-no-empty-sections\n```\n\nThen, set up your `.remarkrc`:\n\n```JSON\n{\n  \"plugins\": [\n    \"lint\",\n    \"lint-no-empty-sections\"\n  ]\n}\n```\n\nNow you can use the following command to run the lint:\n\n```bash\nremark xxx.md\n```\n\n### Via CLI\n\n```bash\nnpm install -g remark-cli\nnpm install remark-lint remark-lint-no-empty-sections\nremark -u lint -u lint-no-empty-sections xxx.md\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvhf%2Fremark-lint-no-empty-sections","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvhf%2Fremark-lint-no-empty-sections","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvhf%2Fremark-lint-no-empty-sections/lists"}