Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/y0hami/eslint-config


https://github.com/y0hami/eslint-config

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# eslint-config-hami
My ESLint config for typescript, react and nextjs

Based on [Standard](https://github.com/standard/standard)

[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

---

## Install

```bash
yarn add --dev eslint-config-hami
```

```bash
yarn esinit --config
```
Configs: ts, react, nextjs

## Other Configs
#### React Config

Change `extends` to `hami/react` in `.eslintrc.json`
```json
{
"extends": ["hami/react"],
"parserOptions": {
"project": "./tsconfig.json"
}
}
```

#### NextJS Config

Change `extends` to `hami/nextjs` in `.eslintrc.json`
```json
{
"extends": ["hami/nextjs"],
"parserOptions": {
"project": "./tsconfig.json"
}
}
```