Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for CSS modules to stylelint-config-bitcrowd #22

Open
pmeinhardt opened this issue Dec 4, 2018 · 0 comments
Open

Add support for CSS modules to stylelint-config-bitcrowd #22

pmeinhardt opened this issue Dec 4, 2018 · 0 comments

Comments

@pmeinhardt
Copy link

pmeinhardt commented Dec 4, 2018

Currently stylelint-config-bitcrowd chokes when used on CSS modules.
More specifically, I'm currently using CSS modules (written in SCSS) that use the composes property.

The current workaround looks (somewhat) like this:

const config = require('stylelint-config-bitcrowd');

const rules = {
  ...config.rules,
  'order/properties-order': ['composes', ...config.rules['order/properties-order']],
  'property-no-unknown': [
    true,
    {
      ignoreProperties: ['composes'],
    },
  ],
};

module.exports = { ...config, rules };

I've also taken stylelint-config-css-modules for a spin. However, that completely overrode the @function, @if… and other rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant