I use postcss-scss with stylelint on my .scss files and I'm trying to figure out how to enforce a rule so that all my variables follow the same naming convention throughout my project.
Is there a way to specify a format or pattern (i.e. a regex) for variable names? I am aware of https://github.com/davidtheclark/stylelint-selector-bem-pattern for selectors but I could not find anything about variable names.
I'm thinking something along the lines of https://github.com/sasstools/sass-lint/pull/257 but that would be compatible with stylelint rules.
For example I may want my variable names to always be camelCase, in which case:
// this wouldn't be correct
$my-variable: #000;
// but this would be correct
$myVariable: #000;