import-js/eslint-plugin-import

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

Open

#2,788 opened on May 30, 2023

View on GitHub
 (14 comments) (1 reaction) (0 assignees)JavaScript (1,540 forks)batch import
docshelp wantedimport/export ordering

Repository metrics

Stars
 (4,946 stars)
PR merge metrics
 (Avg merge 138d 22h) (3 merged PRs in 30d)

Description

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?

Contributor guide