import-js / eslint-plugin-import

ESLint plugin with rules that help validate proper imports.
MIT License
5.57k stars 1.57k forks source link

docs: update documentation for `import/order` and `import/extensions` #3106

Open Xunnamius opened 3 days ago

Xunnamius commented 3 days ago

Resolves #2897 \ Related to #3104 and #3105 \ Potentially related to #2708, #2304, #2540

I can slice and dice this PR in whatever way is most useful.

The changes to the import/extensions documentation (preview) are not so massive and should merge cleanly.

The changes to the import/order documentation (preview), however, are much more extensive. I've been referring back to these docs on and off for several months as I've tweaked my linter configurations, and every time I do I pretty much leave confused and fall back on stepping through eslint-plugin-import's source to see what's actually happening. Along with documenting the new functionality introduced in #3104, this PR attempts to demystify import/order's documentation in the following ways:

codecov[bot] commented 3 days ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.72%. Comparing base (a20d843) to head (3eca3f7).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #3106 +/- ## ========================================== - Coverage 95.28% 94.72% -0.56% ========================================== Files 83 83 Lines 3584 3583 -1 Branches 1252 1251 -1 ========================================== - Hits 3415 3394 -21 - Misses 169 189 +20 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


🚨 Try these New Features: