eslint.config.mjs 내 rules 어떻게 설정 하나요?
import { defineConfig, globalIgnores } from "eslint/config";
import nextVitals from "eslint-config-next/core-web-vitals";
import nextTs from "eslint-config-next/typescript";
const eslintConfig = defineConfig([
...nextVitals,
...nextTs,
// Override default ignores of eslint-config-next.
globalIgnores([
// Default ignores of eslint-config-next:
".next/**",
"out/**",
"build/**",
"next-env.d.ts",
]),
]);
export default eslintConfig;위 와 같이 구성 되어 있는데,
"@typescript-eslint/no-unused-vars: "warn"
"@typescript-eslint/no-explicit-any": "off"
이 두가지 옵션을 어디에 입력해야 될지 모르겠어요
제미나이 답변으로는 아래 처럼 하라는데, 맞을까요?
import { defineConfig, globalIgnores } from "eslint/config";
import nextVitals from "eslint-config-next/core-web-vitals";
import nextTs from "eslint-config-next/typescript";
const eslintConfig = defineConfig([
...nextVitals,
...nextTs,
// Override default ignores of eslint-config-next.
{
rules: {
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-explicit-any": "off",
},
},
globalIgnores([
// Default ignores of eslint-config-next:
".next/**",
"out/**",
"build/**",
"next-env.d.ts",
]),
]);
export default eslintConfig;
답변 1
안녕하세요, 강의 수강 중인 학생입니다.
0
8
1
강의 잘 들었습니다.
0
36
1
generateStaticParams() 응용 질문 드립니다.
0
77
2
강의 업데이트 관련
0
86
1
에러핸들링- rootlayout에 관하여
0
77
2
버셀로 서버 배포 후 접속 시 500 에러 발생
0
146
2
컴포넌트와 레이아웃
0
93
2
@/styles/globals.css'
0
122
2
풀라우트캐시 동작 원리에서 데이터 캐시 관련 질문
0
104
2
next.js 프로젝트
0
103
1
Next.js + Tanstack Query BFF 구조 질문
1
135
2
Next.js 사전렌더링 이해하기 부분
0
121
2
모달 관련 질문
0
139
3
렌더링 관련 질문
0
140
2
중복으로 하나의 api를 요청할 때 캐싱 옵션 통일화
0
134
2
라우트 세그먼트 옵션 강좌 노트에 사소한 제보 남깁니다.
0
126
2
SSR시 context에 params말고 query를 사용하면 안되나요?
0
146
2
npx prisma db push 시 에러가 뜹니다.
0
180
3
vercel 배포를 실패하였습니다.
0
203
3
Image 컴포넌트 사용시 브라우저 콘솔에 경고는 왜 뜨는걸까요?
0
137
2
getServerSideProps 함수와 SSR의 관계
0
182
6
없는 페이지인데 풀라우트캐시로 저장이 되는 이유가 궁금합니다
0
123
2
실제 프로젝트에서 SSR 사용에 관해서 질문드립니다.
0
187
2
일반적인 nextjs project architecture에 대하여..
0
151
2





