// constants.scss
$var-name: '640px';
@import './constants.scss';
.some-class {
// ...
@media screen and (min-width: $var-name) {
// ...
}
}
stylelint **/*.scss --fix
Unexpected invalid media query "(min-width: $var-name)" media-query-no-invalid