# remark-lint-no-repeat-punctuation

> remark lint plugin that will warn when multiple punctuations found in series.

Latest version **0.1.4** (published 2021-02-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install remark-lint-no-repeat-punctuation
pnpm add remark-lint-no-repeat-punctuation
yarn add remark-lint-no-repeat-punctuation
bun add remark-lint-no-repeat-punctuation
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2021-02-18 |
| First published | 2019-03-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 5.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | LaySent |
| Maintainers | laysent |
| Keywords | remark, remark-lint, lint, rule |

## Links

- npm: https://www.npmjs.com/package/remark-lint-no-repeat-punctuation
- Repository: https://github.com/laysent/remark-lint-plugins
- Issues: https://github.com/laysent/remark-lint-plugins/issues
- npm.io page: https://npm.io/package/remark-lint-no-repeat-punctuation

## Dependencies (3)

- [unist-util-map](https://npm.io/package/unist-util-map.md) ^1.0.4
- [unified-lint-rule](https://npm.io/package/unified-lint-rule.md) ^1.0.3
- [unist-util-to-list-of-char](https://npm.io/package/unist-util-to-list-of-char.md) ^0.1.3

## 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
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 0.1.4 (latest) — 2021-02-18
- 0.1.3 — 2019-05-02
- 0.1.2 — 2019-05-01
- 0.1.1 — 2019-03-10
- 0.1.0 — 2019-03-04

## README

# remark-lint-no-repeat-punctuation

Warn when punctuations are used repeatedly. By default, following punctuations are only allowed to be appeared alone:

`！`, `!`, `~`, `～`, `.`, `。`, `,`, `，`, `·`, `?`, `？`.

## Example

**`valid.md`**

**In**

```markdown
好好学习，天天向上！
```

**Out**

No messages.

**`invalid.md`**

**In**

```markdown
好好学习，天天向上！！！
好好学习，天天向上~~~
好好学习，天天向上。。。
好好学习，天天向上？？？
```

**Out**

```text
input.md:1:11: Should not repeat "！"
input.md:1:12: Should not repeat "！"
input.md:2:11: Should not repeat "~"
input.md:2:12: Should not repeat "~"
input.md:3:11: Should not repeat "。"
input.md:3:12: Should not repeat "。"
input.md:4:11: Should not repeat "？"
input.md:4:12: Should not repeat "？"
```

## Install

```sh
npm install remark-lint-no-repeat-punctuation
```

## Usage

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

```diff
 ...
 "remarkConfig": {
   "plugins": [
     ...
     "remark-lint",
+    "remark-lint-no-repeat-punctuation",
     ...
   ]
 }
 ...
```

Or use it on the CLI directly

```sh
remark -u remark-lint -u remark-lint-no-repeat-punctuation 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('remark-lint-no-repeat-punctuation'))
   .process('_Emphasis_ and **importance**', function (err, file) {
     console.error(report(err || file));
   });
```

## License

[MIT](https://github.com/laysent/remark-lint-plugins/blob/master/LICENSE) © [LaySent](https://github.com/laysent)

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