Skip to content

Feature: add rust-style-naming rule #1322

@c-antin

Description

@c-antin

In my deno projects, I often use Rust via ffi and I was wondering if we could unify the naming conventions.

It may have been proposed already (Discord?), yet I didn't find an issue for the following proposal:
Similar to https://rust-lang.github.io/api-guidelines/naming.html a lint rule that enforces UpperCamelCase for types, interfaces and classes and snake_case for functions, methods and variables plus SCREAMING_SNAKE_CASE for constants (if enforcible) would be great.

pros: uniform naming across Rust and TypeScript
cons: JS legacy naming convention is camelCase

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions