1.2.3 • Published 12 months ago
@kleytonsolinho/eslint-config v1.2.3
📦 Kleyton Solinho ESLint config
Whats included this package?
- Standard config base;
- React plugin;
- React Hooks plugin;
- JSX a11y plugin;
- Prettier;
👨🏻💻 Setup
Install the dependencies
npm i eslint @kleytonsolinho/eslint-config -D
Create a .eslintrc.json file extending the config to react:
{
"extends": "@kleytonsolinho/eslint-config/react"
}
Or extending the config to node:
{
"extends": "@kleytonsolinho/eslint-config/node"
}
Create a .prettierrc.js file extending the config:
module.exports = require('@kleytonsolinho/eslint-config/prettier');
You can also use a .eslintrc.js instead of JSON if you prefer.