-2

Is it possible to give error/warning if someone in the team tries to add the variable as property (not value) in any other file other than variable.css?

it could be either CSS native variables or Sass variables

Jitendra Vyas
  • 148,487
  • 229
  • 573
  • 852

1 Answers1

0

There is no rule for that in stylelint as it is a very specific use case. The plugin system was built to accommodate these types of use cases, though. The solution is create your own plugin for your needs.

jeddy3
  • 3,451
  • 1
  • 12
  • 21