GithubHelp home page GithubHelp logo

sparksp / elm-review-camelcase Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 799 KB

elm-review rule to ensure your code uses camelCase

Home Page: https://package.elm-lang.org/packages/sparksp/elm-review-camelcase/latest/

License: MIT License

Elm 92.15% JavaScript 7.85%
elm elm-review camelcase review-camelcase

elm-review-camelcase's Introduction

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

elm-review-camelcase's People

Contributors

dependabot[bot] avatar sparksp avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

elm-review-camelcase's Issues

Should allow a trailing underscore

UseCamelCase: Wrong case style for `range_` argument.

20| range : ModuleUse -> Range
21| range (ModuleUse _ range_) =
                       ^^^^^^
22|     range_


It's important to maintain consistent code style to reduce the effort needed to
read and understand your code.

All arguments must be named using the camelCase style.  For this argument that
would be `range`.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.