项目作者: jdolle

项目描述 :
Prefer fetch over other ajax requests
高级语言: JavaScript
项目地址: git://github.com/jdolle/eslint-plugin-fetch.git
创建时间: 2016-05-23T07:52:44Z
项目社区:https://github.com/jdolle/eslint-plugin-fetch

开源协议:

下载


ESLint-Plugin-Fetch

Build Status
Coverage Status

Prefer fetch over other ajax requests

Installation

You’ll first need to install ESLint:

  1. $ npm i eslint --save-dev

Next, install eslint-plugin-fetch:

  1. $ 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:

  1. {
  2. "plugins": ["fetch"],
  3. "extends": ["plugin:fetch/recommended"]
  4. }

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.