nextjs에서 eslint 사용하지 않는 변수 오류 없애기

 

1.lint 관련 플러그인 설치

npm install @next/eslint-plugin-next

 

2. eslinet.config.mjs 파일을 다음과 같이 설정

 

const eslintConfig = [
  ...compat.extends("next/core-web-vitals", "next/typescript"),
  {
    plugins: ["@typescript-eslint/eslint-plugin-next"],
    rules: {
      "no-unused-vars": "off",
      "@typescript-eslint/no-unused-vars": "error",
    },
  },
];

 

'앱개발' 카테고리의 다른 글

JSON.stringify / JSON.parse 활용  (0) 2024.08.31
inkscape - 도형 머지하기  (0) 2024.06.19
Blender3d 2.82 의 창 분리하기, 창 합치기  (0) 2020.05.21
윈도우용 npm 업그레이드 하기,  (0) 2019.04.01
PouchDB에 관해서...  (0) 2019.02.22

+ Recent posts