nestjs/typescript-starter

TypeScript unsupported version by @typescript-eslint

Chris7ca opened this issue · 0 comments

When the script lint is runned in a fresh installation this is the output

> users@0.0.1 lint
> eslint "{src,apps,libs,test}/**/*.ts" --fix

=============

WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.

You may find that it works just fine, or you may not.

SUPPORTED TYPESCRIPT VERSIONS: >=3.3.1 <4.8.0

YOUR TYPESCRIPT VERSION: 4.8.2

Please only submit bug reports when using the officially supported version.

=============

/home/user/test/users/src/app.controller.ts
  1:10  warning  'Controller' is defined but never used     @typescript-eslint/no-unused-vars
  1:22  warning  'Get' is defined but never used            @typescript-eslint/no-unused-vars
  5:14  warning  'AppController' is defined but never used  @typescript-eslint/no-unused-vars

/home/user/test/users/src/app.module.ts
   1:10  warning  'Module' is defined but never used         @typescript-eslint/no-unused-vars
   2:10  warning  'AppController' is defined but never used  @typescript-eslint/no-unused-vars
   3:10  warning  'AppService' is defined but never used     @typescript-eslint/no-unused-vars
  10:14  warning  'AppModule' is defined but never used      @typescript-eslint/no-unused-vars

/home/user/test/users/src/app.service.ts
  1:10  warning  'Injectable' is defined but never used  @typescript-eslint/no-unused-vars
  4:14  warning  'AppService' is defined but never used  @typescript-eslint/no-unused-vars

✖ 9 problems (0 errors, 9 warnings)

Temporary solution: downgrade to stable version

$ npm i -D typescript@~4.7.4