BACKEND/NODEJS

nestjs @typescript-eslint/no-unused-vars 가 자꾸 괴롭힐때

나를찾는아이 2022. 12. 8. 16:43
728x90
반응형

 

 

import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';

@Module({
  imports: [],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule {}

 

nestjs에서 decorator로 사용하는 멀쩡한 코드인데 import 되는 모듈들에서 eslint의

 

@typescript-eslint/no-unused-vars

 

오류 또는 경고가 발생한다면?

 

 

현재 시점을 기준으로(2022/12/7) typescript-eslint

 

https://github.com/typescript-eslint/typescript-eslint

 

GitHub - typescript-eslint/typescript-eslint: Monorepo for all the tooling which enables ESLint to support TypeScript

:sparkles: Monorepo for all the tooling which enables ESLint to support TypeScript - GitHub - typescript-eslint/typescript-eslint: Monorepo for all the tooling which enables ESLint to support TypeS...

github.com

해당 패키지의 최신버전이 v5.45.1 입니다

 

최신버전으로 업데이트 해주세요

 

 

 

728x90
반응형