0.0.1 • Published 10 years ago
eslint-plugin-fetch v0.0.1
ESLint-Plugin-Fetch
Prefer fetch over other ajax requests
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-fetch:
$ npm install eslint-plugin-fetch --save-devNote: 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.
- no-$http: Prevent Angular's $http.
Contributing
Contributions are always welcome.
License
ESLint-plugin-fetch is licensed under the MIT License.