# remark-lint-double-link

> Remark plugin lint double link

Latest version **0.2.0** (published 2023-02-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install remark-lint-double-link
pnpm add remark-lint-double-link
yarn add remark-lint-double-link
bun add remark-lint-double-link
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2023-02-21 |
| First published | 2020-07-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=12 |
| Dependencies | 4 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Ivan Demidov |
| Maintainers | scrum |
| Keywords | lint, link, double |

## Links

- npm: https://www.npmjs.com/package/remark-lint-double-link
- Repository: https://github.com/Scrum/remark-lint-double-link
- Homepage: https://github.com/Scrum/remark-lint-double-link#readme
- Funding: https://patreon.com/scrums
- npm.io page: https://npm.io/package/remark-lint-double-link

## Dependencies (4)

- [@types/unist](https://npm.io/package/@types/unist.md) ^2.0.6
- [normalize-url](https://npm.io/package/normalize-url.md) ^5.1.0
- [unist-util-visit](https://npm.io/package/unist-util-visit.md) ^4.1.2
- [unified-lint-rule](https://npm.io/package/unified-lint-rule.md) ^2.1.1

## 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.2.0 (latest) — 2023-02-21
- 0.1.3 — 2020-09-28
- 0.1.2 — 2020-08-05
- 0.1.1 — 2020-07-20
- 0.1.0 — 2020-07-10

## README

# remark-lint-double-link
> This [remark-lint](https://github.com/wooorm/remark-lint) rule ensures that there will be no duplicate links `URL` in the list

[![Actions Status](https://github.com/Scrum/remark-lint-double-link/workflows/Actions%20Status/badge.svg?style=flat-square)](https://github.com/Scrum/remark-lint-double-link/actions?query=workflow%3A%22CI+tests%22)[![node](https://img.shields.io/node/v/remark-lint-double-link.svg?style=flat-square)]()[![npm version](https://img.shields.io/npm/v/remark-lint-double-link.svg?style=flat-square)](https://www.npmjs.com/package/remark-lint-double-link)[![Dependency Status](https://david-dm.org/Scrum/remark-lint-double-link.svg?style=flat-square)](https://david-dm.org/Scrum/remark-lint-double-link)[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg?style=flat-square)](https://github.com/xojs/xo)[![Coveralls status](https://img.shields.io/coveralls/Scrum/remark-lint-double-link.svg?style=flat-square)](https://coveralls.io/r/Scrum/remark-lint-double-link)

[![npm downloads](https://img.shields.io/npm/dm/remark-lint-double-link.svg?style=flat-square)](https://www.npmjs.com/package/remark-lint-double-link)[![npm](https://img.shields.io/npm/dt/remark-lint-double-link.svg?style=flat-square)](https://www.npmjs.com/package/remark-lint-double-link)

## Why?
Checks only duplicate `URL`, which helps to get rid of duplicates with the same link names or with different ones. 
The main policy is not to duplicate links to the same resources


```Text
<!-- Invalid -->

[link-1](http://link-1)
[link-2](http://link-1)

<!-- Valid -->

[link](http://link-1)
```

## Using the rule

### Via `.remarkrc`

```bash
npm install -g remark-cli
npm install remark-lint remark-lint-alphabetize-lists
```

Then, set up your `.remarkrc`:

```JSON
{
  "plugins": [
    "lint",
    "lint-double-link"
  ]
}
```

Now you can use the following command to run the lint:

```bash
remark xxx.md
```

### Via CLI

```bash
npm install -g remark-cli
npm install remark-lint remark-lint-double-link
remark -u lint -u lint-double-link xxx.md
```

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