pete-murphy/elm-review-elm-css-migration/1.0.1

NOTE: the latest version is 1.0.2

OnlyInAttributeList

rule : Rule

Reports instances of Html.Styled.Attributes.css that are not inside a list of attributes.

config =
    [ OnlyInAttributeList.rule
    ]

Fail

a =
    Html.div [ style ]
        []


style =
    Attr.css []

Success

a =
    Html.div [ Attr.css [] ]
        []

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:

elm-review --template pete-murphy/elm-review-elm-css-migration/example --rules OnlyInAttributeList