eslint-plugin-whatwg-fetch
v1.0.1
Published
rules related to whatwg-fetch
Maintainers
Readme
eslint-plugin-whatwg-fetch
rules related to whatwg-fetch
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-whatwg-fetch:
$ npm install eslint-plugin-whatwg-fetch --save-devNote: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-whatwg-fetch globally.
Usage
Add whatwg-fetch to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"whatwg-fetch"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"whatwg-fetch/valid-method": 2,
"whatwg-fetch/uppercase-method": 2
}
}