Skip to content

Commit

Permalink
Merge pull request #8 from ridi/add-common-exceptions
Browse files Browse the repository at this point in the history
일반 ESLint 규칙 예외 정리
  • Loading branch information
namenu authored Feb 6, 2018
2 parents 9f3cd55 + a694757 commit 4ac305d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
module.exports = {
extends: 'airbnb',
rules: {
// 프로퍼티 이름은 camelCase를 강제하지 않음
// 참고: https://github.com/ridi/style-guide/blob/master/API.md#user-content-http-api-작성-가이드
camelcase: ['error', { properties: 'never' }],

// 클래스 메서드 안에서 반드시 this를 사용할 필요 없음
'class-methods-use-this': 'off',

// 행의 최대 길이는 120
'max-len': ['warn', 120],

// 문장의 마지막에 존재하는 주석 시작 전에 한 개 이상의 공백을 허용
'no-multi-spaces': ['error', { ignoreEOLComments: true }],

// `<label>` 태그가 컨트롤을 반드시 포함하지 않아도 됨
// 참고: https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/label-has-for.md
'jsx-a11y/label-has-for': ['error', { required: 'id' }],
Expand Down

0 comments on commit 4ac305d

Please sign in to comment.