Skip to content

Are rules (implemented by plugins) responsible for checking if syntax is standard/non-standard? #2904

@ghost

Description

Describe the issue. Is it a bug or a feature request (new rule, new option, etc.)?

I maintain a plugin (https://github.com/ismay/stylelint-no-unsupported-browser-features) which currently breaks when used with LESS. It seems to be breaking because of the non-standard syntax being passed to doiuse, which can't handle that (see RJWadley/stylelint-no-unsupported-browser-features#36).

Now in the docs (https://stylelint.io/developer-guide/rules/#criteria-for-inclusion) it states that a rule needs to be applicable to standard syntax to be considered for inclusion. So I'm wondering, am I responsible for making sure that what my plugin is checking is standard-syntax, or is the LESS processor misbehaving by passing non-standard syntax to my plugin? Because other non-standard syntaxes seem to be working, so I'm wonderingif this is due to some issue with the LESS processor.

Which rule, if any, is this issue related to?

stylelint-no-unsupported-browser-features

What CSS is needed to reproduce this issue?

See related issue

What stylelint configuration is needed to reproduce this issue?

See related issue

Which version of stylelint are you using?

8

How are you running stylelint: CLI, PostCSS plugin, Node API?

See related issue

Does your issue relate to non-standard syntax (e.g. SCSS, nesting, etc.)?

Yes. Less.

What did you expect to happen?

See related issue

What actually happened (e.g. what warnings or errors you are getting)?

See related issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions