README
eslint-config-hudochenkov
My configs for ESLint.
Available configs:
eslint-config-hudochenkov
— default config which includes following configs:eslint-config-hudochenkov/base
— config with only ESLint core rules.eslint-config-hudochenkov/common-plugins
— config with eslint-plugin-unicorn, eslint-plugin-import, and eslint-plugin-jest. Applies both for browser and Node.js projects.
eslint-config-hudochenkov/react
— config for React applications. Includes eslint-plugin-react, eslint-plugin-react-hooks, and eslint-plugin-jsx-a11y plugins.eslint-config-hudochenkov/react-testing
— config for tesing React apps with React Testing Library. Includes eslint-plugin-jest-dom and eslint-plugin-testing-library plugins.
Installation
Install config:
npm install --save-dev eslint-config-hudochenkov
Usage
Add chosen config to the extends
section of your ESLint configuration:
{
"extends": ["eslint-config-hudochenkov"]
}
{
"extends": [
"eslint-config-hudochenkov/react",
"eslint-config-hudochenkov/react-testing"
]
}