import-js/eslint-plugin-import

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

Open

#2788 opened on May 30, 2023

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

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