Skip to content

Commit c083a7e

Browse files
authored
Merge pull request #6 from codeit-sprint-part3-6team/#5_Prettier-Lint-์„ธํŒ…
์—์–ด๋น„์—”๋น„ ๋ฆฐํŠธ ์ ์šฉ, ํ…Œ์ŠคํŠธ
2 parents 8196c67 + 44db26a commit c083a7e

File tree

6 files changed

+353
-111
lines changed

6 files changed

+353
-111
lines changed

โ€Ž.eslintrc.jsonโ€Ž

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,37 @@
11
{
2-
"extends": ["next/core-web-vitals", "next/typescript"]
2+
"env": {
3+
"browser": true,
4+
"es2021": true,
5+
"node": true
6+
},
7+
"settings": {
8+
"import/resolver": {
9+
"node": {
10+
"extensions": [".js", ".jsx", ".ts", ".tsx"] // ํ™•์žฅ์ž ์—๋Ÿฌ ํ‘œ์‹œ x
11+
}
12+
}
13+
},
14+
"extends": [
15+
"prettier",
16+
"airbnb",
17+
"airbnb/hooks",
18+
"airbnb-typescript",
19+
"next/core-web-vitals",
20+
"eslint:recommended", // ์ถ”์ฒœ ๊ทœ์น™ ์ ์šฉ
21+
"plugin:react/recommended",
22+
"plugin:prettier/recommended",
23+
"plugin:@typescript-eslint/recommended"
24+
],
25+
"parser": "@typescript-eslint/parser",
26+
"parserOptions": {
27+
"ecmaVersion": "latest",
28+
"sourceType": "module",
29+
"project": "./tsconfig.json"
30+
},
31+
"plugins": ["@typescript-eslint", "react", "prettier"],
32+
"rules": {
33+
"react/react-in-jsx-scope": "off",
34+
"react/jsx-props-no-spreading": "off",
35+
"prettier/prettier": "error" // ์จ๋ณด๊ณ  ์“ธ๋ฐ์—†๋Š” ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•  ๊ฒฝ์šฐ ์ง์ ‘ ์„ค์ •
36+
}
337
}

โ€Žnext.config.tsโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { NextConfig } from "next";
1+
import type { NextConfig } from 'next';
22

33
const nextConfig: NextConfig = {
44
/* config options here */

0 commit comments

Comments
ย (0)