From 31332963ba231def83d4a91e84f8e9b639e93913 Mon Sep 17 00:00:00 2001 From: MinSeob Date: Tue, 7 Nov 2023 17:22:03 +0900 Subject: [PATCH] =?UTF-8?q?Fix=20:=20eslint=20prettier=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.json | 3 ++- Components/Button.tsx | 5 +---- package-lock.json | 13 +++++++++++++ package.json | 1 + 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 02b09b2..af22060 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -2,7 +2,8 @@ "extends": [ "next/core-web-vitals", "eslint:recommended", - "plugin:@typescript-eslint/recommended" + "plugin:@typescript-eslint/recommended", + "prettier" ], "parser": "@typescript-eslint/parser", "plugins": ["@typescript-eslint"], diff --git a/Components/Button.tsx b/Components/Button.tsx index a53d6d5..e969c01 100644 --- a/Components/Button.tsx +++ b/Components/Button.tsx @@ -15,10 +15,7 @@ const HomeButton = ({ buttonName }: ButtonProps) => { }; return ( - ); diff --git a/package-lock.json b/package-lock.json index 7b8845e..b620c62 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,6 +28,7 @@ "autoprefixer": "^10.0.1", "eslint": "^8", "eslint-config-next": "14.0.1", + "eslint-config-prettier": "^9.0.0", "husky": "^8.0.0", "postcss": "^8", "tailwindcss": "^3.3.0", @@ -1915,6 +1916,18 @@ } } }, + "node_modules/eslint-config-prettier": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.0.0.tgz", + "integrity": "sha512-IcJsTkJae2S35pRsRAwoCE+925rJJStOdkKnLVgtE+tEpqU0EVVM7OqrwxqgptKdX29NUwC82I5pXsGFIgSevw==", + "dev": true, + "bin": { + "eslint-config-prettier": "bin/cli.js" + }, + "peerDependencies": { + "eslint": ">=7.0.0" + } + }, "node_modules/eslint-import-resolver-node": { "version": "0.3.9", "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", diff --git a/package.json b/package.json index 3571c86..0fb7796 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "autoprefixer": "^10.0.1", "eslint": "^8", "eslint-config-next": "14.0.1", + "eslint-config-prettier": "^9.0.0", "husky": "^8.0.0", "postcss": "^8", "tailwindcss": "^3.3.0",