1.2.0 • Published 2 months ago

eslint-plugin-ben v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

eslint-plugin-ben

ESLint rules for me

설치

eslint 설치

ESLint를 먼저 설치해주세요:

npm i eslint --save-dev

그 다음, .eslintrc.js 파일을 생성해주세요:

module.exports = {
  root: true,
};

eslint-plugin-ben 설치

eslint-plugin-ben를 설치해주세요:

npm install eslint-plugin-ben --save-dev

이 플러그인에는 추천 설정이 함께 제공됩니다. .eslintrc 파일에서 extends 속성에 plugin:ben/recommended를 추가해주세요:

{
  "extends": ["plugin:ben/recommended"]
}

제공되는 프리셋을 사용하지 않는 경우 개별 규칙을 설정하고 일부 구성을 추가해야 합니다...

규칙 재설정하기

특정 규칙을 재설정하고 싶다면, rules 섹션에서 해당 규칙을 오버라이드할 수 있습니다. 예를 들어, no-lodash 규칙을 비활성화하고 no-moment 규칙을 오류로 표시하려면 다음과 같이 설정하세요.

{
  "extends": ["plugin:ben/recommended"],
  "rules": {
    "ben/no-lodash": "off",
    "ben/no-moment": "error"
  }
}

구성

Name
recommended

규칙들

⚠️ Configurations set to warn in.\ ✅ Set in the recommended configuration.\ 🔧 Automatically fixable by the --fix CLI option.

NameDescription⚠️🔧
no-lodashprefer lodash-es to lodash for better tree-shaking support🔧
no-momentprefer date-fns to moment for better tree-shaking support🔧

기여하기

eslint-plugin-ben 라이브러리에 기여하고 싶다면 아래 문서를 참고해주세요.

CONTRIBUTING

1.2.0

2 months ago

1.1.1

2 months ago

1.1.0

2 months ago

1.0.5

2 months ago

1.0.4

2 months ago

1.0.3

2 months ago

1.0.0

2 months ago