Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jefferson-calmon/eslint-config

ESLint configuration I use in most projects
https://github.com/jefferson-calmon/eslint-config

eslint eslint-config eslint-plugin eslint-rules

Last synced: 18 days ago
JSON representation

ESLint configuration I use in most projects

Awesome Lists containing this project

README

        

# ESLint config

## Whats included?

- Standard config base;
- React plugin;
- React Hooks plugin;
- JSX a11y plugin;
- Prettier;

## Setup

### React (with Next.js)

Install dependencies:
```
npm i -D eslint @jefferson-calmon/eslint-config
```
Inside `.eslintrc.json`
```
{
"extends": [
"@jefferson-calmon/eslint-config/next",
"next/core-web-vitals"
]
}
```

### React (without Next.js)

Install dependencies:
```
npm i -D eslint @jefferson-calmon/eslint-config
```
Inside `.eslintrc.json`
```
{
"extends": "@jefferson-calmon/eslint-config/react"
}
```

### Node.js

Install dependencies:
```
npm i -D eslint @jefferson-calmon/eslint-config
```
Inside `.eslintrc.json`
```
{
"extends": "@jefferson-calmon/eslint-config/node"
}
```