electrovir / stylelint-plugin-import

Stylelint plugin for managing imports.
https://www.npmjs.com/package/stylelint-plugin-import
1 stars 1 forks source link

Incompatible with Stylelint 16 #22

Open carlosjeurissen opened 11 months ago

carlosjeurissen commented 11 months ago

When using the plugin with Stylelint 16, the following error pops out:

stylelint requires plugins to expose a ruleName. The plugin "stylelint-plugin-import@1.0.13/node_modules/stylelint-plugin-import/dist/index.js" is not doing this, so will not work with stylelint. Please file an issue with the plugin.

electrovir commented 11 months ago

Thanks for the report! I'll fix this ASAP. (I assume the fix is easy so I should get to it within the next 24 hours.)

electrovir commented 11 months ago

Hmm... this plugin does include rules names for each rule it exposes. I'm not sure exactly what changed yet, but I'm guessing it has something to do with all the breaking changes in 16: https://stylelint.io/migration-guide/to-16

carlosjeurissen commented 9 months ago

Pretty odd indeed. Got into the same issue when attempting to migrate "stylelint-a11y" to v16.