# remark-lint-no-hr-after-heading

> remark-lint rule to warn when an hr appears after a heading

Latest version **1.0.0** (published 2020-08-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install remark-lint-no-hr-after-heading
pnpm add remark-lint-no-hr-after-heading
yarn add remark-lint-no-hr-after-heading
bun add remark-lint-no-hr-after-heading
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-08-25 |
| First published | 2020-08-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | olizilla |
| Maintainers | olizilla |
| Keywords | remark, lint, rule, hr, thematic, break |

## Links

- npm: https://www.npmjs.com/package/remark-lint-no-hr-after-heading
- npm.io page: https://npm.io/package/remark-lint-no-hr-after-heading

## Dependencies (2)

- [unist-util-visit](https://npm.io/package/unist-util-visit.md) ^2.0.3
- [unified-lint-rule](https://npm.io/package/unified-lint-rule.md) ^1.0.6

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2020-08-25

## README

# remark-lint-no-hr-after-heading

Warn when a when an horizontal rule appears after a heading. It's a thematic break, not a heading border.

## Example

##### `ok.md`

###### In

```markdown
# Hello world
```

###### Out

No messages.

##### `not-ok.md`

###### In

```markdown
# Hello world
---
```

###### Out

```text
  2:1-2:4  warning  Don’t use a horizontal line after a heading  no-hr-after-heading  remark-lint
```

## Install

[npm][https://docs.npmjs.com/cli/install]:

```sh
npm install remark-lint-no-heading-indent
```

## Use

You probably want to use it on the CLI through a config file:

```diff
 …
 "remarkConfig": {
   "plugins": [
     …
     "lint",
+    "lint-no-hr-after-indent",
     …
   ]
 }
 …
```

Or use it on the CLI directly

```sh
remark -u lint -u lint-no-hr-after-indent readme.md
```

Or use this on the API:

```diff
 var remark = require('remark')
 var report = require('vfile-reporter')

 remark()
   .use(require('remark-lint'))
+  .use(require('lint-no-hr-after-indent'))
   .process('_Emphasis_ and **importance**', function (err, file) {
     console.error(report(err || file))
   })
```

## License

[MIT][https://github.com/olizilla/remark-lint-no-hr-after-heading/blob/main/license] © [olizilla][https://github/olizilla]

---
_Source: https://npm.io/package/remark-lint-no-hr-after-heading · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
