Tinkoff / linters

Tinkoff ESlint, Stylelint and Prettier linter configurations
Apache License 2.0
125 stars 24 forks source link

feat(stylelint-config): ignore less functions #216

Closed zy2ba closed 1 year ago

zy2ba commented 1 year ago

Closes #213

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

What is the current behavior?

function-no-unknown false-positive detects less functions

What is the new behavior?

function-no-unknown ignore less functions

Does this PR introduce a breaking change?

zy2ba commented 1 year ago

After that combining less with angular not so easy. Example workaround:

  1. Use stylelint.config.jss instead of .stylelintrc
  2. Configure something like this:
    module.exports = {
    extends: ['@tinkoff/stylelint-config/less', '@tinkoff/stylelint-config/angular'],
    rules:  require('@tinkoff/stylelint-config/less').rules,
    };

May be add this workaround to doc or describe separate angular-less config?