4.0.2 • Published 8 months ago

@lofty87/eslint-config v4.0.2

Weekly downloads
54
License
MIT
Repository
github
Last release
8 months ago

@lofty87/eslint-config

TypeScript 기반 React, Next, Expo 프로젝트에서 사용할 수 있는 Code Convention (ESLint) 입니다. Code Convention 을 잡고 프로젝트를 진행하게 되면, 나 또는 팀원들이 모두 일관성 있는 코드를 작성하게 되어 코드 관리가 쉽고 유지 보수에 용이하다는 장점이 있습니다. 또 코드가 통일성 있고 깔끔하게 되어 코드의 품질을 올릴 수 있습니다.

아래와 같이 프로젝트를 설정할 경우, 파일 저장만으로 자동 ESLint Formatting 이 가능해집니다.

1. Prerequisite (required)

  • typescript@>=4.6.3
    • tsconfig.json
  • VSCode Extensions
    • ESLint

2. Dependencies

  • @typescript-eslint/eslint-plugin@^5.50.0
  • @typescript-eslint/parser@^5.50.0
  • eslint-plugin-import@^2.27.5
  • eslint-plugin-jsx-a11y@^6.7.1
  • eslint-plugin-react@^7.32.2
  • eslint-plugin-react-hooks@^4.6.0

3. Installation

# npm
npm install @lofty87/eslint-config eslint --save-dev

# yarn
yarn add @lofty87/eslint-config eslint --dev

4. Configuration

프로젝트 폴더(root)에 .eslintrc.json 파일을 생성하고 아래 내용을 추가합니다.

{
  "extends": "@lofty87/eslint-config",
  "rules": {}
}

VSCode Preferences 의 Settings 안에 아래 내용을 추가합니다.

{
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": "explicit"
  }
}

자, 이제 파일을 저장하면 자동으로 ESLint Formatting 이 가능합니다.

4.0.1

8 months ago

4.0.0

8 months ago

4.0.2

8 months ago

2.0.6

2 years ago

3.0.9

2 years ago

3.0.4

2 years ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.8

2 years ago

3.0.7

2 years ago

3.0.6

2 years ago

3.0.5

2 years ago

3.0.0

2 years ago

2.0.5

4 years ago

2.0.4

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.1.28

4 years ago

1.1.23

5 years ago

1.1.27

5 years ago

1.1.26

5 years ago

1.1.25

5 years ago

1.1.24

5 years ago

1.1.22

5 years ago

1.1.21

5 years ago

1.1.20

5 years ago

1.1.19

5 years ago

1.1.18

5 years ago

1.1.17

5 years ago

1.1.16

5 years ago