1.0.0 • Published 1 year ago
eslint-config-dcanhanga v1.0.0
eslint-config-dcanhanga
What's included?
- Standard config base;
- React plugin;
- React Hooks plugin;
- JSX a11y plugin;
- Prettier;
Setup
React (with Next.js)
Install dependencies:
npm i -D eslint eslint-config-dcanhanga
Inside .eslintrc.json
:
{
"extends": [
"eslint-config-dcanhanga/next",
"next/core-web-vitals"
]
}
React (without Next.js)
Install dependencies:
npm i -D eslint eslint-config-dcanhanga
Inside .eslintrc.json
:
{
"extends": "eslint-config-dcanhanga/react"
}
Node.js
Install dependencies:
npm i -D eslint eslint-config-dcanhanga
Inside .eslintrc.json
:
{
"extends": "eslint-config-dcanhanga/node"
}
License
This project is licensed under the MIT License - see the LICENSE file for details.
1.0.0
1 year ago