Prefer fetch over other ajax requests
npm install eslint-plugin-fetchESLint-Plugin-Fetch
===================


Prefer fetch over other ajax requests
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.
Add fetch to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix.recommended
This plugin exports a configuration that enforces all the rules. You can configure the plugin as follows:
`json``
{
"plugins": ["fetch"],
"extends": ["plugin:fetch/recommended"]
}
* no-jquery: Prevent jQuery ajax requests.
* no-xhr: Prevent XMLHttpRequest.
These rules are disabled by default to improve performance.
* no-$http: Prevent Angular's $http.
Contributions are always welcome.
ESLint-plugin-fetch is licensed under the MIT License.