How to specify a format or pattern for SCSS variable names using stylelint?
<p>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.</p>

<p>Is there a way to specify a format or pattern (i.e. a regex) for variable names? I am aware of <a href="https://github.com/davidtheclark/stylelint-selector-bem-pattern" rel="nofollow">https://github.com/davidtheclark/stylelint-selector-bem-pattern</a> for selectors but I could not find anything about variable names.</p>

<p>I'm thinking something along the lines of <a href="https://github.com/sasstools/sass-lint/pull/257" rel="nofollow">https://github.com/sasstools/sass-lint/pull/257</a> but that would be compatible with stylelint rules.</p>

<p>For example I may want my variable names to always be camelCase, in which case:</p>

<pre><code>// this wouldn't be correct
$my-variable: #000;

// but this would be correct
$myVariable: #000;
</code></pre>