Skip to content

decioferreira/elm-review-zen-css

Repository files navigation

elm-review-zen-css

Provides elm-review rules to support the use of elm-zen-css.

Provided rules

  • ZenCss.NoHtmlClasses - Reports the use of Html.Attributes.class, Html.Attributes.classList and Svg.Attributes.class.
  • ZenCss.NoHtmlStyles - Reports the use of Html.Attributes.style and Svg.Attributes.style.

Configuration

module ReviewConfig exposing (config)

import Review.Rule exposing (Rule)
import ZenCss.NoHtmlClasses
import ZenCss.NoHtmlStyles

config : List Rule
config =
    [ ZenCss.NoHtmlClasses.rule
    , ZenCss.NoHtmlStyles.rule
    ]

Try it out

You can try the example configuration above out by running the following command:

elm-review --template decioferreira/elm-review-zen-css/example