remark-lint/packages/remark-lint-no-duplicate-definitions
Titus Wormer 4a380fca27 Rewrite so that rules are published to npm individually
Additionally, this updates for remark@7.0.0, unified@6.0.0.
2017-02-23 18:07:52 +01:00
..
index.js Rewrite so that rules are published to npm individually 2017-02-23 18:07:52 +01:00
package.json Rewrite so that rules are published to npm individually 2017-02-23 18:07:52 +01:00
readme.md Rewrite so that rules are published to npm individually 2017-02-23 18:07:52 +01:00

remark-lint-no-duplicate-definitions

Warn when duplicate definitions are found.

Install

npm install --save remark-lint-no-duplicate-definitions

Example

When this rule is turned on, the following file valid.md is ok:

[foo]: bar
[baz]: qux

When this rule is turned on, the following file invalid.md is not ok:

[foo]: bar
[foo]: qux
2:1-2:11: Do not use definitions with the same identifier (1:1)

License

MIT © Titus Wormer