eslint-plugin-fetch

0.0.1 • Public • Published

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.

Package Sidebar

Install

npm i eslint-plugin-fetch

Weekly Downloads

1,857

Version

0.0.1

License

MIT

Last publish

Collaborators

  • jdolle