Slow lint warnings: disable by default, allow enabling by config
AriPerkkio opened this issue · 0 comments
AriPerkkio commented
Currently when a file takes more than 5 seconds to lint, a warning is logged. This is considered as "slow lint". While this may be useful for rule development, it is causing false positives and verbose logging when testing rule configurations. Rule configurations typically have multiple rules enabled.
eslint-remote-tester/lib/engine/worker-task.ts
Lines 241 to 252 in 8a6917c
eslint-remote-tester/lib/progress-logger/progress-logger.ts
Lines 299 to 312 in 8a6917c
eslint-remote-tester/lib/progress-logger/log-templates.ts
Lines 80 to 85 in 8a6917c
- Disable slow lint warnings by default.
- Allow users to enable slow lint warnings throught
eslint-remote-tester.config.ts
. - The default value should be
null
. Allowed values are numbers. - The current log level "warning" is preserved. No changes here.