Skip to content

Rule: keyword-case #9

@sjbarag

Description

@sjbarag

Some people prefer keywords to be lowercase (sub main()). Others prefer uppercase (SUB main()), or title-case (Sub main()). Enforce those preferences with an eslint rule

Schema

Name: keyword-case
Options:

  • String (enum)
    • Values: "lower" | "title" | "upper"

Examples

if foo then
    print "bar"
end if
Option Allowed?
lower
title 🚫
upper 🚫
If foo Then
    Print "bar"
End If
Option Allowed?
lower 🚫
title
upper 🚫
IF foo THEN
    PRINT "bar"
END IF
Option Allowed?
lower 🚫
title 🚫
upper

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions