Skip to content

cssmodules-pure-no-check feature #889

@jantimon

Description

@jantimon

hi @devongovett

would you be open to port the cssmodules-pure-no-check feature from postcss to lightningcss?

The feature is a limited opt-out for the cssModules: { pure: true } linting rule similar to @ts-ignore or @ts-nocheck or eslint-disable for edge cases in large projects where lightningcss is configured globally

For example:

/** cssmodules-pure-no-check */

:global(#stripe-modal-backdrop) {
  background: rgba(0, 0, 0, 0.5);
}

In postcss the /** cssmodules-pure-no-check */ disables the linting rule for the entire file.

If you are okay with porting the feature I would love to start working on a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions