From 5375029009c8b31993ba6fd53187e0f8b1c69307 Mon Sep 17 00:00:00 2001 From: KimKyuHoi Date: Mon, 18 Nov 2024 20:21:56 +0900 Subject: [PATCH] =?UTF-8?q?HOTFIX:=20esLint=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.json | 12 ++++++++---- package.json | 1 + pnpm-lock.yaml | 12 ++++++++++++ 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 1b1607b..e50a444 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -27,7 +27,8 @@ "react-hooks", "jsx-a11y", "import", - "prettier" + "prettier", + "simple-import-sort" ], "settings": { "import/resolver": { @@ -50,8 +51,7 @@ "error", { "endOfLine": "auto", - "singleQuote": true, - "importOrder": "off" + "singleQuote": true } ], "react/react-in-jsx-scope": "off", @@ -62,6 +62,10 @@ "prefer-arrow-callback": "off", "max-len": "off", "no-mixed-operators": "off", - "no-multiple-empty-lines": "off" + "no-multiple-empty-lines": "off", + + // Import sorting rules + "simple-import-sort/imports": "error", + "simple-import-sort/exports": "error" } } diff --git a/package.json b/package.json index 8ac3caf..1dbe690 100644 --- a/package.json +++ b/package.json @@ -81,6 +81,7 @@ "eslint-plugin-react": "^7.37.2", "eslint-plugin-react-hooks": "^4.6.2", "eslint-plugin-react-refresh": "^0.4.14", + "eslint-plugin-simple-import-sort": "^12.1.1", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "prettier": "^3.3.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 85d31be..c3f33ef 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -207,6 +207,9 @@ importers: eslint-plugin-react-refresh: specifier: ^0.4.14 version: 0.4.14(eslint@8.57.1) + eslint-plugin-simple-import-sort: + specifier: ^12.1.1 + version: 12.1.1(eslint@8.57.1) jest: specifier: ^29.7.0 version: 29.7.0(@types/node@20.17.6)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@20.17.6)(typescript@5.6.3)) @@ -2409,6 +2412,11 @@ packages: peerDependencies: eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7 + eslint-plugin-simple-import-sort@12.1.1: + resolution: {integrity: sha512-6nuzu4xwQtE3332Uz0to+TxDQYRLTKRESSc2hefVT48Zc8JthmN23Gx9lnYhu0FtkRSL1oxny3kJ2aveVhmOVA==} + peerDependencies: + eslint: '>=5.0.0' + eslint-scope@7.2.2: resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -7092,6 +7100,10 @@ snapshots: string.prototype.matchall: 4.0.11 string.prototype.repeat: 1.0.0 + eslint-plugin-simple-import-sort@12.1.1(eslint@8.57.1): + dependencies: + eslint: 8.57.1 + eslint-scope@7.2.2: dependencies: esrecurse: 4.3.0