eslint-config-hudochenkov
v12.0.0
Published
My ESLint configs
Downloads
265
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 @stylistic/eslint-plugin, eslint-plugin-unicorn, and eslint-plugin-import. 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.jest— config with eslint-plugin-jest.
Installation
Install config:
npm install --save-dev eslint-config-hudochenkovUsage
Add chosen config to your ESLint configuration:
import { configs } from 'eslint-config-hudochenkov';
import { defineConfig } from 'eslint/config';
export default defineConfig([
configs.main,
configs.react,
configs.reactTesting,
// other configuration objects
]);