Reports instances of Html.Styled.Attributes.css that are not inside a list of attributes.
Html.Styled.Attributes.css
config = [ OnlyInAttributeList.rule ]
a = Html.div [ style ] [] style = Attr.css []
a = Html.div [ Attr.css [] ] []
This rule is useful when migrating off of elm-css.
elm-css
You can try this rule out by running the following command:
elm-review --template pete-murphy/elm-review-elm-css-migration/example --rules OnlyInAttributeList
Reports instances of
Html.Styled.Attributes.cssthat are not inside a list of attributes.Fail
Success
When (not) to enable this rule
This rule is useful when migrating off of
elm-css.Try it out
You can try this rule out by running the following command: