Closed jaydenseric closed 3 years ago
Perhaps postcss-modules-extract-imports
is part of the solution?
Hey @jaydenseric, sorry it's taken so long for me to get to this... been a very busy month for me! Haven't forgotten about these tickets, though!
I've just pushed some changes to the repo that I think will solve the problems with composes
. Could you give it a try? I haven't officially released via npm yet so you'll need to use the github syntax in your package.json, ie:
{
"devDependencies": {
"eslint-plugin-postcss-modules": "bmatcuk/eslint-plugin-postcss-modules"
}
}
I assume all is well with composition, too? I'm going to close this issue, but let me know if you run into trouble!
At the moment, the
composes:
syntax for composition is not supported in 2 ways:composes:
classes as unused. Possibly related to https://github.com/bmatcuk/eslint-plugin-postcss-modules/issues/7 ?composes: className from './file.css'
syntax to import specific classes for composition (see the CSS Modules “Composing from other files” docs).