728x90
반응형
1. 라이브러리 설치
npm i -D @typescript-eslint/parser @typescript-eslint/eslint-plugin
2. .eslintrc.json 파일 수정
{
"plugins": [
"@typescript-eslint"
],
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"rules": {
"@typescript-eslint/no-empty-interface": "off",
"no-empty-interface": "off"
},
"overrides": [
{
"files": [
"*.js",
"*.jsx"
],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-empty-interface": "off"
}
}
]
}
728x90
반응형
'Front-End > Next.js' 카테고리의 다른 글
Next.js | 사용자 접속 IP 확인하기 (0) | 2022.03.11 |
---|---|
Next.js | 세션(express-session)과 토큰(jwt)을 사용한 중복 로그인 방지 ( 기존 사용자 로그아웃 여부 확인) (0) | 2022.03.07 |
Next.js | Redux-toolkit in Next.js( typescript ) | createAsyncThunk 비동기 API 관리 (0) | 2022.02.22 |
Next.js | Redux-toolkit in Next.js( typescript ) | 기본 세팅 (0) | 2022.02.22 |
Next.js | 나만의 React Scheduler Calendar 만들기 ( 캘린더 객체화 ) (0) | 2022.01.06 |