eslint-plugin-hyper-fetch
v7.5.3
Published
Eslint plugin for HyperFetch
Readme
Eslint Plugin Hyper Fetch
About
Eslint 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.
Installation
Assuming you already have ESLint installed, run:
#npm
npm i eslint-plugin-hyper-fetch
#yarn
yarn add -D eslint-plugin-hyper-fetchThen extend the recommended eslint config:
{
"extends": [
// ...
"plugin:hyper-fetch/recommended"
]
}Custom Configuration
If you want more fine-grained configuration, you can instead add a snippet like this to your ESLint configuration file:
{
"plugins": [
// ...
"hyper-fetch"
],
"rules": {
// ...
"hyper-fetch/client-generic-types": "error",
"hyper-fetch/request-generic-types": "error"
}
}