From af6c8c97fe6c3b7d0ec716c088155f91fd76a9bc Mon Sep 17 00:00:00 2001 From: saseungmin Date: Sun, 29 Sep 2024 14:43:20 +0900 Subject: [PATCH] =?UTF-8?q?chore(eslint-config):=20css=20import=EB=8A=94?= =?UTF-8?q?=20=EA=B0=80=EC=9E=A5=20=EC=83=81=EB=8B=A8=EC=9C=BC=EB=A1=9C=20?= =?UTF-8?q?import=20=EB=90=98=EB=8F=84=EB=A1=9D=20=EC=A0=95=EB=A0=AC=20?= =?UTF-8?q?=EB=A3=B0=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .changeset/neat-chicken-unite.md | 6 ++++++ apps/docs/docs/eslint-config/index.md | 4 ++-- packages/eslint/index.js | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 .changeset/neat-chicken-unite.md diff --git a/.changeset/neat-chicken-unite.md b/.changeset/neat-chicken-unite.md new file mode 100644 index 0000000..2abac64 --- /dev/null +++ b/.changeset/neat-chicken-unite.md @@ -0,0 +1,6 @@ +--- +"@nf-team/eslint-config": minor +"docs": minor +--- + +chore(@nf-team/eslint-config): css import는 가장 상단으로 import 되도록 정렬 룰 변경 diff --git a/apps/docs/docs/eslint-config/index.md b/apps/docs/docs/eslint-config/index.md index f439ca3..df2f581 100644 --- a/apps/docs/docs/eslint-config/index.md +++ b/apps/docs/docs/eslint-config/index.md @@ -67,8 +67,8 @@ This is the default value for the `groups` option: ['^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'], // Svg file imports. ['^.+\\.svg$'], - // Style imports. - ['^.+\\.s?css$'], + // Module css(scss) style imports. + ['^.+\\.module.s?css$'], ] ``` diff --git a/packages/eslint/index.js b/packages/eslint/index.js index 2df1b4c..da00bee 100644 --- a/packages/eslint/index.js +++ b/packages/eslint/index.js @@ -56,7 +56,7 @@ module.exports = { ['^\\.\\.(?!/?$)', '^\\.\\./?$'], ['^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'], ['^.+\\.svg$'], - ['^.+\\.s?css$'], + ['^.+\\.module.s?css$'], ], }], 'react/jsx-no-useless-fragment': ['error', {