2.0.1 • Published 2 years ago
@copastur/eslint-config v2.0.1
ESLint
Whats included?
- Standard config base;
- React plugin;
- React Hooks plugin;
- JSX a11y plugin;
- Prettier;
Setup
React (with Next.js)
If you are using Nextjs, follow the commands to install the Eslint package
- Install the dependencies
npm i -D eslint @copastur/eslint-config- Create a
.eslintrc.jsonfile extending the config:
{
"extends": [
"@copastur/eslint-config/next",
"next/core-web-vitals"
]
}React Vite (without Next.js)
If you are using Vite follow the commands to install the Eslint package
- Install the dependencies
npm i -D eslint @copastur/eslint-config- Create a
.eslintrc.jsonfile extending the config:
{
"extends": [
"@copastur/eslint-config/react"
]
}You can also use a
.eslintrc.jsinstead of JSON if you prefer.