We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SCSS has the ability to define variables as maps (https://codepen.io/jakealbaugh/post/using-sass-functions-to-access-complex-variable-maps), but actually, the Formatter enforces that all variables should be on the same line.
e.g.:
Something like this:
$buttonColors: ( 'primary': $primary-color, 'success': $success-color, 'warning': $warning-color, 'danger': $danger-color, 'info': $info-color );
will become:
Which obviously, is not so readable.
The text was updated successfully, but these errors were encountered:
This is very frustrating. How to prevent inlining?
Sorry, something went wrong.
I have currently solved this by commenting out the following line. Someone more experineced JS developer should make an exception for sass:maps.
https://github.com/morishitter/stylefmt/blob/875c9037590fa201bdd7698fbfa5c1943137cc86/lib/formatSassVariables.js#L46
No branches or pull requests
SCSS has the ability to define variables as maps (https://codepen.io/jakealbaugh/post/using-sass-functions-to-access-complex-variable-maps), but actually, the Formatter enforces that all variables should be on the same line.
e.g.:
Something like this:
will become:
Which obviously, is not so readable.
The text was updated successfully, but these errors were encountered: