@squarecloud/eslint-config
v0.1.6
Published
ESLint configuration pattern used in Square Cloud
Downloads
2
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, inspired by rocketseat-eslint.
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"
}