Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
jikwan0327 committed Apr 16, 2023
2 parents 1a089a9 + e8c3cdf commit 395f97d
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions lib/config/recommended.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,21 @@ module.exports = {
extends: require.resolve("./base.js"),

rules: {
"func-names": 0,
"space-before-function-paren": 0,
"no-shadow": 0,
"no-else-return": 0,
"no-extend-native": 0,
"no-underscore-dangle": 0,
"arrow-body-style": 0,
"prefer-arrow-callback": 0,
"prefer-rest-params": 0,
"consistent-return": 0,
"generator-star-spacing": [2, "after"],
// https://eslint.org/docs/latest/rules/no-duplicate-imports
"no-duplicate-imports": 0, //중복 모듈 가져오기 금지
// https://eslint.org/docs/latest/rules/no-unused-vars
"no-unused-vars": ["warn", { vars: "all", args: "all", ignoreRestSiblings: true }], //사용하지 않는 변수 허용하지 않음
// https://eslint.org/docs/latest/rules/arrow-body-style
"arrow-body-style": ["error", "as-needed"], //화살표 함수 본문 주위에 중괄호 필요 여부에 따라 결정
// https://eslint.org/docs/latest/rules/block-scoped-var
"block-scoped-var": 0, //정의된 범위 내에서 변수 사용 강제
// https://eslint.org/docs/latest/rules/func-style
"func-style": ["error", "expression"], //화살표 함수 필수
// https://eslint.org/docs/latest/rules/no-empty
"no-empty": ["error", { allowEmptyCatch: true }], //빈 블록 문을 허용하지 않음
// https://eslint.org/docs/latest/rules/require-await
"require-await": 0, //await표현식이 없는 비동기 함수를 허용하지 않음
// https://eslint.org/docs/latest/rules/max-depth
"max-depth": ["error", 3], //블록 중첩 최대 3번까지
},
};

0 comments on commit 395f97d

Please sign in to comment.