Nx: allow eslint cache

Created on 17 Jan 2020  路  7Comments  路  Source: nrwl/nx

_Please make sure you have read the submission guidelines before posting an issue_

Expected Behavior

eslint cache could be enabled

Current Behavior

no way to enable eslint cache

Other

Allow eslint --cache in configuration/cli

community misc feature

All 7 comments

Good idea!

I can have a look at this 馃憤

This requires a change to @angular-eslint/builder package: https://github.com/angular-eslint/angular-eslint/pull/35

It might make sense to build/maintain own nx version builder for eslint as we discussed with @jaysoo

One thing i also want to point out is that nx affected:lint does not make sense at all right now. Lint should only happen to files that are changed. Not projects that has dependencies on.

@zodiac1214 I agree, linting won't break on a file when only its dependencies have changed. Hopefully eslint caching will land in 9.1

I haven't checked this for a long time. It looks like we have it released! i just tried that. it reduce lint time from 40s to 10s in one of my project. @rarmatei close this ticket now

Was this page helpful?
0 / 5 - 0 ratings