0.0.1 • Published 8 years ago

eslint-plugin-fetch v0.0.1

Weekly downloads
38,533
License
MIT
Repository
-
Last release
8 years ago

ESLint-Plugin-Fetch

Build Status Coverage Status

Prefer fetch over other ajax requests

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-fetch:

$ npm install eslint-plugin-fetch --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-fetch globally.

Recommended configuration

Add fetch to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix. This plugin exports a recommended configuration that enforces all the rules. You can configure the plugin as follows:

{
    "plugins": ["fetch"],
    "extends": ["plugin:fetch/recommended"]
}

List of Provided Rules

Library Specific Rules

These rules are disabled by default to improve performance.

Contributing

Contributions are always welcome.

License

ESLint-plugin-fetch is licensed under the MIT License.