Eslint plugin for HyperFetch
npm install eslint-plugin-hyper-fetchEslint Plugin Hyper Fetch is a plugin for eslint rules to add some additional functionality for your code static
analysis. It allows to find generic types issues like typos, missing values or completely incorrect usage of types.
Assuming you already have ESLint installed, run:
``sh
#npm
npm i eslint-plugin-hyper-fetch
#yarn
yarn add -D eslint-plugin-hyper-fetch
`
Then extend the recommended eslint config:
`js`
{
"extends": [
// ...
"plugin:hyper-fetch/recommended"
]
}
If you want more fine-grained configuration, you can instead add a snippet like this to your ESLint configuration file:
`js``
{
"plugins": [
// ...
"hyper-fetch"
],
"rules": {
// ...
"hyper-fetch/client-generic-types": "error",
"hyper-fetch/request-generic-types": "error"
}
}
- #### Installation
- #### Docs
- #### API
- #### NPM
- #### Guides
- - #### Hyper Fetch