Skip to content

ESLint plugin with rules that help validate proper URLs.

License

Notifications You must be signed in to change notification settings

keyfoxth/eslint-plugin-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

ESLint plugin with rules that help validate proper URLs.

Resources

License

Stars

Watchers

Forks

Packages

No packages published