Skip to content

jeonbyeongmin/eslint-config

Repository files navigation

@jeonbyeongmin/eslint-config

By default, this package includes the following configurations:

And if your package.json includes typescript in devDependencies, it also automatically configures TypeScript. Jest also works the same way.

Installation

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

Usage

  1. Create .eslintrc.json file in your project root directory.
{
  "extends": "@jeonbyeongmin/eslint-config", 
  "overrides": []
}
{
   "extends": "@jeonbyeongmin/eslint-config/react"
   "overrides": []
}
  1. 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: []
};