Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rule: keyword-case #9

Open
sjbarag opened this issue Jun 15, 2021 · 0 comments
Open

Rule: keyword-case #9

sjbarag opened this issue Jun 15, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@sjbarag
Copy link
Contributor

sjbarag commented Jun 15, 2021

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
@sjbarag sjbarag added the enhancement New feature or request label Jun 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant