From 02559a2110475e5ddec0dcce8dc47cd40fd8506c Mon Sep 17 00:00:00 2001 From: Kyle Date: Mon, 24 Jun 2024 10:37:25 +0900 Subject: [PATCH] Add curly rule in eslint (#24) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: 중괄호 필수 rule 추가 * chore: add changeset --- .changeset/lucky-hounds-try.md | 5 +++++ packages/eslint-plugin/lib/config/base.js | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/lucky-hounds-try.md diff --git a/.changeset/lucky-hounds-try.md b/.changeset/lucky-hounds-try.md new file mode 100644 index 0000000..8fdde13 --- /dev/null +++ b/.changeset/lucky-hounds-try.md @@ -0,0 +1,5 @@ +--- +"@channel.io/eslint-config": minor +--- + +add curly rule diff --git a/packages/eslint-plugin/lib/config/base.js b/packages/eslint-plugin/lib/config/base.js index 8c0391e..130bf14 100644 --- a/packages/eslint-plugin/lib/config/base.js +++ b/packages/eslint-plugin/lib/config/base.js @@ -120,5 +120,6 @@ module.exports = { }, ], 'import/no-duplicates': 'error', + 'curly': ['error', 'all'] }, }