Skip to content

Commit

Permalink
Chore: ESLint 플러그인 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
mungyun1 committed Nov 25, 2024
1 parent 604f249 commit c506d0c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
8 changes: 2 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
module.exports = {
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier", // prettier와 ESLint의 충돌 방지
],
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:@next/next/recommended", "prettier"],
plugins: ["prettier"],
rules: {
"prettier/prettier": "error", // Prettier 규칙을 ESLint에서 에러로 처리
"prettier/prettier": "error",
},
};
11 changes: 10 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
{
"extends": ["next/core-web-vitals", "next/typescript", "plugin:prettier/recommended"]
"extends": [
"next/core-web-vitals",
"next/typescript",
"plugin:prettier/recommended",
"plugin:@next/next/recommended"
],
"plugins": ["prettier"],
"rules": {
"prettier/prettier": "error"
}
}
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@
"react": "^18.2.0",
"react-calendar": "^5.1.0",
"react-dom": "^18.2.0",
"react-kakao-maps-sdk": "^1.1.27",
"react-hook-form": "^7.53.2",
"zod": "^3.23.8",
"react-icons": "^5.3.0",
"react-kakao-maps-sdk": "^1.1.27",
"zod": "^3.23.8",
"zustand": "^5.0.1"
},
"devDependencies": {
"@next/eslint-plugin-next": "^15.0.3",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/node": "^20",
"@types/react": "^18",
Expand Down

0 comments on commit c506d0c

Please sign in to comment.