1.0.1 • Published 8 years ago

eslint-plugin-url v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

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 IDDescriptionRecommendedfixable
no-absolute-urldisallow the use of absolute URLserroryes
no-httpdisallow the use of HTTP in hyperlinksoffyes