ESLint-Plugin-Fetch
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:
List of Provided Rules
Library Specific Rules
These rules are disabled by default to improve performance.
- no-$http: Prevent Angular's $http.
Contributing
Contributions are always welcome.
License
ESLint-plugin-fetch is licensed under the MIT License.