https://github.com/scrum/remark-lint-double-link
remark plugin lint double link
https://github.com/scrum/remark-lint-double-link
Last synced: 9 months ago
JSON representation
remark plugin lint double link
- Host: GitHub
- URL: https://github.com/scrum/remark-lint-double-link
- Owner: Scrum
- License: mit
- Created: 2020-07-10T08:07:26.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-08-07T21:31:49.000Z (almost 2 years ago)
- Last Synced: 2025-02-20T18:51:29.828Z (over 1 year ago)
- Language: JavaScript
- Size: 1.16 MB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- Funding: .github/funding.yml
- License: license
Awesome Lists containing this project
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
[](https://github.com/Scrum/remark-lint-double-link/actions?query=workflow%3A%22CI+tests%22)[]()[](https://www.npmjs.com/package/remark-lint-double-link)[](https://coveralls.io/r/Scrum/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
[link-1](http://link-1)
[link-2](http://link-1)
[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
```