Skip to content

jdolle/eslint-plugin-fetch

Repository files navigation

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.

About

Prefer fetch over other ajax requests

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published