nrwl / precise-commits

:sparkles: Painlessly apply Prettier by only formatting lines you have modified anyway!
MIT License
471 stars 20 forks source link

Option to ignore really large files #28

Open davidlaym opened 5 years ago

davidlaym commented 5 years ago

I'm having problems with a not-so-much large data JSON file that I need to have in the repo, and it's somewhat frequently updated, but being as large as 12MB, it depletes all the memory when precise-commits parses it and it crashes.

I like to have my JSON files linted and checked, but I would like to ignore really large files like this one if possible, maybe with a custom threshold something like --ignore-size 10MB