2.1.1 • Published 8 months ago
@bigdayco/eslint-config v2.1.1
BigDay ESLint config
Whats included?
- Standard config base;
- Import helpers plugin;
- React plugin;
- React Hooks plugin;
- JSX a11y plugin;
- Prettier;
Setup
⚠️ If you have used Prettier, please disable or uninstall it to avoid conflicts.
- Install the dependencies
npm i -D eslint @bigdayco/eslint-config
- Create a
.eslintrc.json
file extending the config:
{
# React
"extends": "@bigdayco/eslint-config/react"
# Next.js
"extends": [
"@bigdayco/eslint-config/next",
"next/core-web-vitals"
]
#Node.js
"extends": "@bigdayco/eslint-config/node"
}
You can also use a
.eslintrc.js
instead of JSON if you prefer.