@defesacivil/eslint-config
v1.0.0
Published
ESLint configuration used by Defesa Civil projects.
Downloads
13
Maintainers
Readme
Defesa Civil ESLint config
What's included?
- Standard config base
- React plugin
- React Hooks plugin
- JSX a11y plugin
- TypeScript support
- Prettier integration
Setup
React (with Next.js)
Install dependencies:
npm i -D eslint @defesacivil/eslint-configInside .eslintrc.json
{
"extends": [
"@defesacivil/eslint-config/next",
"next/core-web-vitals"
]
}React (without Next.js)
Install dependencies:
npm i -D eslint @defesacivil/eslint-configInside .eslintrc.json
{
"extends": "@defesacivil/eslint-config/react"
}Node.js
Install dependencies:
npm i -D eslint @defesacivil/eslint-configInside .eslintrc.json
{
"extends": "@defesacivil/eslint-config/node"
}