1.0.0 • Published 1 year ago

textlint-rule-ban-links v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

textlint-rule-ban-links

This rule bans links with URLs of the specified patterns.

Install

Install with npm:

npm install textlint-rule-ban-links

Usage

Via .textlintrc(Recommended)

{
    "rules": {
        "ban-links": {
            // configure as you like
            patterns: ["^https?://localhost", "^C:", "/$"]
        }
    }
}

Via CLI

textlint --rule ban-links README.md

Build

Builds source codes for publish to the lib folder. You can write ES2015+ source codes in src/ folder.

npm run build

Tests

Run test code in test folder. Test textlint rule by textlint-tester.

npm test

License

MIT © tee-talog