folq/review-rgb-ranges/1.0.3

NOTE: the latest version is 1.0.5

NoInvalidRGBValues

Make sure rgb and rgb255 arguments are within the ranges [0, 1] and [0, 255] respectively.

To be used with https://package.elm-lang.org/packages/jfmengels/elm-review/latest/

Rule

rule : Rule

Make sure that rgb and rgb255 values make sense.

The rule is meant to be used with the color functions rgb and rgb255 from elm-ui, and makes sure that the 3 arguments passed to rgb are within [0, 1] and that the arguments to rgb255 are within [0, 255].

If you want to use this rule, add it to config : List Rule in review/ReviewConfig.elm