eslint-config-hudochenkov
v10.0.3
Published
My ESLint configs
Downloads
4,973
Readme
eslint-config-hudochenkov
My configs for ESLint.
Available configs:
main
— default config which includes following configs:base
— config with only ESLint core rules.commonPlugins
— config with eslint-plugin-unicorn, eslint-plugin-import, and eslint-plugin-jest. Applies both for browser and Node.js projects.
react
— config for React applications. Includes eslint-plugin-react, eslint-plugin-react-hooks, and eslint-plugin-jsx-a11y plugins.reactTesting
— 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 your ESLint configuration:
import { configs } from 'eslint-config-hudochenkov';
export default [
...configs.main,
...configs.react,
...configs.reactTesting,
// other configuration objects
];