eslint-plugin-url
This is an ESLint plugin with rules that help validate proper URLs.
Installation
Install eslint-plugin-url
npm install --save-dev eslint-plugin-url
Usage
In .eslintrc
Or
Rules
Rule ID | Description | Recommended | fixable |
---|---|---|---|
no-absolute-url | disallow the use of absolute URLs | error | yes |
no-http | disallow the use of HTTP in hyperlinks | off | yes |