eslint-plugin-hyper-fetch
Version:
Eslint plugin for HyperFetch
85 lines (66 loc) • 2.58 kB
Markdown
<p>
<a href="https://bettertyped.com/">
<img src="https://custom-icon-badges.demolab.com/static/v1?label=&message=BetterTyped&color=333&logo=BT" />
</a>
<a href="https://github.com/BetterTyped/hyper-fetch">
<img src="https://custom-icon-badges.demolab.com/github/stars/BetterTyped/hyper-fetch?logo=star&color=118ab2" />
</a>
<a href="https://github.com/BetterTyped/hyper-fetch/blob/main/License.md">
<img src="https://custom-icon-badges.demolab.com/github/license/BetterTyped/hyper-fetch?logo=law&color=yellow" />
</a>
<a href="https://www.npmjs.com/package/@hyper-fetch/react">
<img src="https://custom-icon-badges.demolab.com/npm/v/@hyper-fetch/react.svg?logo=npm&color=e76f51" />
</a>
<a href="https://github.com/BetterTyped/hyper-fetch">
<img src="https://custom-icon-badges.demolab.com/badge/typescript-%23007ACC.svg?logo=typescript&logoColor=white" />
</a>
<a href="https://www.npmjs.com/package/@hyper-fetch/react">
<img src="https://custom-icon-badges.demolab.com/bundlephobia/minzip/@hyper-fetch/react?color=64BC4B&logo=package" />
</a>
</p>
**`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.
Assuming you already have ESLint installed, run:
```sh
npm i eslint-plugin-hyper-fetch
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"
}
}
```
- [Become a Sponsor on GitHub](https://github.com/sponsors/prc5)
-
-
-
-
-
- -