Performance: forcefully disable some compiler flags #11241
Labels
awaiting response
Issues waiting for a reply from the OP or another party
enhancement
New feature or request
performance
Issues regarding performance
Uh oh!
There was an error while loading. Please reload this page.
Before You File a Proposal Please Confirm You Have Done The Following...
Relevant Package
tsconfig-utils
My proposal is suitable for this project
Description
We already have a default set of core compiler options here:
typescript-eslint/packages/tsconfig-utils/src/compilerOptions.ts
Lines 6 to 13 in 4ad8a07
afaict, these override the user's project compiler options.
while doing some reading through a CPU profile of a lint run, i noticed a significant amount of time is spent ensuring file names are correct when
forceConsistentCasingInFileNames: true
.in the repo I was using, hacking this into
CORE_COMPILER_OPTIONS
asfalse
made the test run speed up from 1m20s to 1m. i ran it a few times, and the times did vary but always had a significant improvement.so suggestion number 1: force
forceConsistentCasingInFileNames: false
since we don't really care when linting.suggestion/idea number 2: maybe this isn't the only setting? maybe there are others doing unnecessary checks we don't really care for in lint runs (typescript's own lint/strict checking, etc)
Additional Info
No response
The text was updated successfully, but these errors were encountered: