You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 21, 2019. It is now read-only.
Because interpolation is necessary to include SassScript values in many contexts, users sometimes accidentally use it in SassScript expressions themselves. For example, see this line from Angular's Material Design components. Not only is this unnecessary, it coerces the result of the expression to an unquoted string, which may make it fail with further mathematical operations down the line.
There should be a lint for this. Specifically, if an interpolated identifier that's just a single interpolation with no other text is encountered, the linter should suggest the user replace it with the value of the expression.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Because interpolation is necessary to include SassScript values in many contexts, users sometimes accidentally use it in SassScript expressions themselves. For example, see this line from Angular's Material Design components. Not only is this unnecessary, it coerces the result of the expression to an unquoted string, which may make it fail with further mathematical operations down the line.
There should be a lint for this. Specifically, if an interpolated identifier that's just a single interpolation with no other text is encountered, the linter should suggest the user replace it with the value of the expression.
The text was updated successfully, but these errors were encountered: