https://github.com/rilysh/eslint-config-tea
A shareable eslint config for TypeScript which I use
https://github.com/rilysh/eslint-config-tea
airbnb-eslint eslint-config
Last synced: 7 months ago
JSON representation
A shareable eslint config for TypeScript which I use
- Host: GitHub
- URL: https://github.com/rilysh/eslint-config-tea
- Owner: rilysh
- License: mit
- Created: 2022-07-13T06:15:56.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-01T16:07:47.000Z (almost 3 years ago)
- Last Synced: 2025-01-17T04:18:48.868Z (9 months ago)
- Topics: airbnb-eslint, eslint-config
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## eslint-config-tea
A shareable eslint config for TypeScript which extends and prettify airbnb eslint config rules.## Install
#### npm
```sh
npm install https://github.com/kiwimoe/eslint-config-tea.git
```
#### yarn
```sh
yarn add https://github.com/kiwimoe/eslint-config-tea.git
```
#### pnpm
```sh
pnpm install https://github.com/kiwimoe/eslint-config-tea.git
```
- Note: You may need to restart the eslint server after installation.## Usage
```ts
// An example using undici fetch
import { fetch, type Response } from "undici";(async () => {
const data = await fetch("https://httpbin.org/post", {
method: "POST",
headers: {
Accept: "application/json",
"Accept-Language": "en-US",
"Content-Type": "application/json",
},
}) as Response;
const json = await data.json();
console.log(json as string);
})();
```