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

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

ESLint configuration pattern used in Square Cloud
https://github.com/squarecloudofc/eslint-config

eslint-config hacktoberfest nodejs squarecloud

Last synced: about 1 year ago
JSON representation

ESLint configuration pattern used in Square Cloud

Awesome Lists containing this project

README

          

# @squarecloud/eslint-config

A Full-Stack ESLint config for React and Node.js projects with Next.js support and Prettier integration.
Created by [Square Cloud](https://squarecloud.app), inspired by [rocketseat-eslint](https://github.com/rocketseat/eslint-config-rocketseat).

## Whats included?

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

## Setup

Install dependencies:
```
npm install -D eslint @squarecloud/eslint-config
```

`.eslintrc.json` Node.JS project
```
{
"extends": "@squarecloud/eslint-config/node"
}
```

`.eslintrc.json` React (with Next.js)
```
{
"extends": [
"@squarecloud/eslint-config/next",
"next/core-web-vitals"
]
}
```

`.eslintrc.json` React (without Next.js)
```
{
"extends": "@squarecloud/eslint-config/react"
}
```