javascript - Which eslint rules in my config are slow? -


i have config around 100 rules, , running eslint on project these rules takes around 10 seconds. i'd identify slowest rules , eliminate of them. how do this? there profiler tool eslint?

eslint shows spent times of rules if environment variable timing set. example:

$ timing=1 eslint lib rule                         | time (ms) | relative :----------------------------|----------:|--------: valid-jsdoc                  |   203.798 |     6.7% camelcase                    |   142.146 |     4.6% no-unmodified-loop-condition |   136.811 |     4.5% indent                       |   127.138 |     4.2% no-undefined                 |   124.525 |     4.1% keyword-spacing              |    85.397 |     2.8% space-in-parens              |    76.179 |     2.5% no-this-before-super         |    72.317 |     2.4% no-implied-eval              |    69.945 |     2.3% space-infix-ops              |    57.128 |     1.9% 

see official docs on per-rule performance.


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -