-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: eslint setting, font setting #103
Changes from all commits
f5bdd5c
a80f5ee
e023d58
19471a5
ee9b954
a7ac088
f573f5e
f4121a9
b833d71
e9fc9cc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,31 @@ | ||
{ | ||
"extends": "next/core-web-vitals" | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": ["@typescript-eslint", "prettier"], | ||
"parserOptions": { | ||
"project": "./tsconfig.json", | ||
"createDefaultProgram": true | ||
}, | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"es6": true | ||
}, | ||
"ignorePatterns": ["node_modules/"], | ||
"extends": [ | ||
"airbnb", | ||
"airbnb-typescript", | ||
"airbnb/hooks", | ||
"next/core-web-vitals", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:prettier/recommended", | ||
"prettier" | ||
], | ||
"rules": { | ||
"react/react-in-jsx-scope": "off", | ||
"react/jsx-props-no-spreading": 0, | ||
"@typescript-eslint/semi": "off", | ||
"react/jsx-filename-extension": ["warn", { "extensions": [".ts", ".tsx"] }], | ||
"no-useless-catch": "off" | ||
} | ||
} |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. next.config ๊ด๋ จํด์ ๊ด์ฐฎ์ ์ํฐํด์ด ์์ด ๊ณต์ ํฉ๋๋ค~ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
reactStrictMode: true, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ์๋ ๊ฒ ์ค์ ํ๊ฒ ๋๋ฉด react์์ ๊ด๋ จ ๋ถ๋ถ์ ์์ด์ <React.StrictMode>๋ฅผ ํ ๊ฑฐ๋ ๋ง์ฐฌ๊ฐ์ง๊ตฐ์!
|
||
eslint: { | ||
ignoreDuringBuilds: true, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ๋น๋ ์์ eslint๋ฅผ ๋ฌด์ํ๋ ์ค์ ์ด๊ตฐ์! ๊ฐ์๊ธฐ ๊ถ๊ธํด์ง ๊ฒ.. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ์ ์ ์๊ฐ์๋ ์ ํ์ธ ๊ฒ ๊ฐ์๋ฐ ์ผ๋จ ์ฐ๋ฆฌ ํ๋ก์ ํธ์ error๊ฐ ๋๋ฌด ๋ง์์ ์์๋ก ์ถ๊ฐํด๋์ด์! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ์๊ฑฐ๋ ์ ๋ ํญ์๊บผ๋๋๋ฐ์~ ์ |
||
}, | ||
// ์ธ๋ถ ์ด๋ฏธ์ง ๋ถ๋ฌ์ค๊ธฐ | ||
images: { | ||
remotePatterns: [ | ||
|
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import localFont from "next/font/local"; | ||
|
||
const pretendard = localFont({ | ||
src: [ | ||
{ | ||
path: "../../public/fonts/Pretendard-SemiBold.woff", | ||
weight: "700", | ||
}, | ||
{ | ||
path: "../../public/fonts/Pretendard-Medium.woff", | ||
weight: "500", | ||
}, | ||
], | ||
variable: "--font-pretendard", | ||
}); | ||
|
||
export default pretendard; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ํ ์ฐ๋ฆฌ๊ฐ eslintrc.json ํ์ผ ์ธํ ์ด ์ ๋๋ก ์๋์ด์์๊ตฐ์!?
์ด ๋ถ๋ถ์ ์ด๋ป๊ฒ ๋ค์ ์ธํ ์ ํ์ ๊ฑด๊ฐ์?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๊ณต์๋ฌธ์์
EsLint ์ค์ ์ํฐํด
์ ์ฐธ๊ณ ํด์ ์ถ๊ฐํ์ด์!