TSLint is not supported for rush-stack-compiler-4.X packages.

New Contributor

Please I need help. I started using pnpjs library v3, but every time i try to gulp build or gulp serve my project. I had also upgraded my rush stack compiler from version 3 to 4.

I get this error: Error - [tslint] Error: TSLint is not supported for rush-stack-compiler-4.X packages.
[20:42:55] Error - 'tslint' sub task errored after 111 ms
TSLint is not supported for rush-stack-compiler-4.X packages.

how do i fix the ts lint issue

 

 

2 Replies

@gerald4  - For now, I'm following trick

 

TypeScript 4+ doesn't support tslint (tslint is deprecated). Thus you should disable the tslint task in your gulpfile.js:

 

build.tslintCmd.enabled = false;

 

SrinivasNarula_0-1648560864217.png

 

This did not work for. I have rush-stack-compiler-4.5 installed, added that line disabling tslint, and I still receive the error. Is there another fix? Thank you