By default, this package includes the following configurations:
- @jeonbyeongmin/eslint-config - ESLint config for JavaScript
- @jeonbyeongmin/eslint-config/react - ESLint config for React
And if your package.json
includes typescript
in devDependencies
, it also automatically configures TypeScript. Jest also works the same way.
npm install --save-dev @jeonbyeongmin/eslint-config eslint
If you use yarn berry, you have to install @rushstack/eslint-patch too. Check this issues
yarn add --dev @jeonbyeongmin/eslint-config eslint @rushstack/eslint-patch
- Create
.eslintrc.json
file in your project root directory.
{
"extends": "@jeonbyeongmin/eslint-config",
"overrides": []
}
{
"extends": "@jeonbyeongmin/eslint-config/react"
"overrides": []
}
- If you use yarn berry, you have to use
js
format. And import@rushstack/eslint-patch
like this.
require('@rushstack/eslint-patch/modern-module-resolution');
module.exports = {
extends: '@jeonbyeongmin/eslint-config',
overrides: []
};