import-js/eslint-plugin-import

[import/order] Regression in behavior with parent and sibling

Open

#2685 aperta il 19 gen 2023

Vedi su GitHub
 (18 commenti) (21 reazioni) (0 assegnatari)JavaScript (1540 fork)batch import
bughelp wantedimport/export ordering

Metriche repository

Star
 (4946 star)
Metriche merge PR
 (Merge medio 138g 22h) (3 PR mergiate in 30 g)

Descrizione

Since Version 2.27.0 we've recognized a change in over 500 files with the ordering rule:

        "import/order": [
          "error",
          {
            "groups": ["builtin", "external", "parent", "sibling", "index"],
            "newlines-between": "always",
            "alphabetize": {
              "order": "asc",
              "caseInsensitive": true
            }
          }
        ],

For example:

@my-local-package/mysub-path @my-local-package/mysub/path

They are now handled different than before and leads to hundres of linting errors where no before.

Guida contributor