feat: cache ESLint instances for faster formatting
This PR speeds up repeated formatting by reusing the previously created ESLintCLIEngine instance when the eslintPath and eslintOptions that are passed to getESLintCLIEngine are identical.
:heart:
Codecov Report
Merging #494 (f6f774d) into master (8f35b25) will not change coverage. The diff coverage is
100.00%.
@@ Coverage Diff @@
## master #494 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 2 2
Lines 208 213 +5
Branches 42 43 +1
=========================================
+ Hits 208 213 +5
| Impacted Files | Coverage Δ | |
|---|---|---|
| src/utils.js | 100.00% <100.00%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update 8f35b25...f6f774d. Read the comment docs.
Codecov Report
Merging #494 (0a7e1d1) into master (d6ef389) will increase coverage by
0.00%. The diff coverage is100.00%.
@@ Coverage Diff @@
## master #494 +/- ##
=======================================
Coverage 99.66% 99.67%
=======================================
Files 2 2
Lines 298 306 +8
Branches 88 92 +4
=======================================
+ Hits 297 305 +8
Misses 1 1
| Impacted Files | Coverage Δ | |
|---|---|---|
| src/utils.js | 100.00% <100.00%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update d6ef389...0a7e1d1. Read the comment docs.
Stale pull request
@idahogurl I've rebased the source branch
@taye GitHub isn's letting me Reopen the PR because it says since the force-pushed or recreated that you need to create a new PR.