Skip to content

sparksp/elm-review-camelcase

Repository files navigation

elm-review-camelcase

elm package elm-review 2.3 elm 0.19 Tests

Provides an elm-review rule to ensure your code uses only camelCase and PascalCase for variables, constants and other declarations.

Provided rule

  • UseCamelCase - Reports code written in the wrong case style.

Example configuration

module ReviewConfig exposing (config)

import Review.Rule exposing (Rule)
import UseCamelCase


config : List Rule
config =
    [ UseCamelCase.rule UseCamelCase.default
    ]

Detailed configuration documentation is provided with the rule.

Try it out

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

elm-review --template sparksp/elm-review-camelcase/example