DEV Community

Discussion on: The ultimate migration guide to angular-eslint, ESLint and Nx 11

Collapse
 
villan3ll3 profile image
VILLAN3LL3

After converting my Angular 11 project to eslint according to this tutorial, it takes 20 minutes to do the linting, as opposed to a few seconds before with TSLint. Is there anyone here who has observed the same behavior? Where is the mistake?

Collapse
 
davidshortman profile image
David • Edited

There definitely is a mistake because I'm noticing the opposite. I'm getting about 2x speed improvements in my lint builds which at longest took over 20 minutes and now takes about 10 minutes.

Collapse
 
villan3ll3 profile image
VILLAN3LL3

Thank you for sharing your experience, David! Is your repository public so I can compare the eslint implementation?

Thread Thread
 
Sloan, the sloth mascot
Comment deleted
 
villan3ll3 profile image
VILLAN3LL3

This would be really great, thank you! Can you add the tsconfig, too?

Collapse
 
layzee profile image
Lars Gyrup Brink Nielsen

It could have to do with operating system. Which operating system are you all using? I'm on Windows 10.

Thread Thread
 
villan3ll3 profile image
VILLAN3LL3

Win 10

Collapse
 
layzee profile image
Lars Gyrup Brink Nielsen

Which command do you usually use for linting?

Did you try something like

nx workspace-lint && nx run-many --target=lint --all --parallel --max-parallel=4
Enter fullscreen mode Exit fullscreen mode

or

nx workspace-lint && nx affected --target=lint --parallel --max-parallel=4
Enter fullscreen mode Exit fullscreen mode
Collapse
 
villan3ll3 profile image
VILLAN3LL3

I've already tried both. Likewise ng lint and nx lint. It always takes so long. Isn't that the case with you?

Thread Thread
 
layzee profile image
Lars Gyrup Brink Nielsen

I don't currently have access to a large real world repo, but I just set this one up github.com/LayZeeDK/nx-nrwl-airlin...