NoSingleLineRecords

rule : Rule

Reports record definitions in type aliases that are written on a single line.

config =
    [ NoSingleLineRecords.rule
    ]

Fail

type alias Person =
    { name : String, age : Int, address : Address }

Success

type alias Person =
    { name : String
    , age : Int
    , address : Address
    }

When (not) to enable this rule

You don't ever need to enable this rule. This is a code style that can easily be reviewed manually as appropriate.

Try it out

You can try this rule out by running the following command:

elm-review --template sparksp/elm-review-rules-to-avoid/preview --rules NoSingleLineRecords