https://github.com/hudochenkov/eslint-config-hudochenkov
My configs for ESLint.
https://github.com/hudochenkov/eslint-config-hudochenkov
eslint-config
Last synced: about 1 year ago
JSON representation
My configs for ESLint.
- Host: GitHub
- URL: https://github.com/hudochenkov/eslint-config-hudochenkov
- Owner: hudochenkov
- License: mit
- Created: 2017-02-22T07:07:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-01-16T18:07:08.000Z (over 1 year ago)
- Last Synced: 2025-04-26T16:46:27.973Z (about 1 year ago)
- Topics: eslint-config
- Language: JavaScript
- Homepage:
- Size: 690 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
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](https://eslint.org/docs/latest/use/configure/combine-configs):
```js
import { configs } from 'eslint-config-hudochenkov';
export default [
...configs.main,
...configs.react,
...configs.reactTesting,
// other configuration objects
];
```
[ESLint]: https://eslint.org/
[eslint-plugin-import]: https://github.com/import-js/eslint-plugin-import
[eslint-plugin-react]: https://github.com/jsx-eslint/eslint-plugin-react
[eslint-plugin-react-hooks]: https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks
[eslint-plugin-jsx-a11y]: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y
[eslint-plugin-unicorn]: https://github.com/sindresorhus/eslint-plugin-unicorn
[eslint-plugin-jest]: https://github.com/jest-community/eslint-plugin-jest
[React Testing Library]: https://testing-library.com/docs/react-testing-library/intro/
[eslint-plugin-jest-dom]: https://github.com/testing-library/eslint-plugin-jest-dom
[eslint-plugin-testing-library]: https://github.com/testing-library/eslint-plugin-testing-library