willhoney7 / eslint-plugin-import-helpers

ESLint plugin to help enforce a configurable order for import statements
291 stars 17 forks source link

Sort import with styles does not work #55

Open Michael3468 opened 1 year ago

Michael3468 commented 1 year ago

I trying to sort imports with '.css' extension and add write rule in config like this:

    "import-helpers/order-imports": [
      "warn",
      {
        "newlinesBetween": "always",
        "groups": [
          "module",
          "/^@shared/",
          "/^@server/",
          "/^@client/",
          "/^@/",
          ["parent", "sibling", "index"],
          "/\\.css$/"
        ],
        "alphabetize": {
          "order": "asc",
          "ignoreCase": true
        }
      }
    ],

but it does not work