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

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


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

npm npm-package

Last synced: 12 months ago
JSON representation

Awesome Lists containing this project

README

          

# eslint-config

## Requirements

- node `>=18.17.0`
- VSCode
- [Install ESLint VSCode Extension](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)
- Go to: `File -> Preferences -> Settings -> Open Setting (JSON)` set the code below
```json
// VSCode JSON Settings
"eslint.workingDirectories": [
"src",
"app",
],
```

## Installation

```bash
yarn add -D @douglasmatosdev/eslint-config
```

## Setup

Add in your `package.json` below settings
```json
// package.json
"prettier": "@douglasmatosdev/eslint-config/prettier",
"eslintConfig": {
"extends": "@douglasmatosdev/eslint-config/eslint"
}
```

Add in your `.eslintrc.json` beloow settings
```json
// .eslitrc.json
{
"extends": ["next/core-web-vitals", "@douglasmatosdev/eslint-config/eslint"]
}
```

> ## Obs.: Reload VSCode