import-js/eslint-plugin-import

[Question] How to put styles first with `import/order`?

Open

#2788 aperta il 30 mag 2023

Vedi su GitHub
 (14 commenti) (1 reazione) (0 assegnatari)JavaScript (1540 fork)batch import
docshelp wantedimport/export ordering

Metriche repository

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

Descrizione

With:

{
  "import/order": [
    "error",
    {
      "newlines-between": "never",
      "warnOnUnassignedImports": true
    }
  ]
}

The following code throws: image image But I want to put styles first, is there a way to turn this error off?

Guida contributor