1.0.1 • Published 8 years ago
eslint-plugin-url v1.0.1
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
{
"plugins": [
"url"
],
"rules": {
// add rules here
}
}
Or
{
"extends": [
"plugin:url/recommended"
],
"rules": {
// override/add rules here
}
}
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 |