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

Feature: add rust-style-naming rule #1322

Open
c-antin opened this issue Sep 12, 2024 · 2 comments
Open

Feature: add rust-style-naming rule #1322

c-antin opened this issue Sep 12, 2024 · 2 comments

Comments

@c-antin
Copy link

c-antin commented Sep 12, 2024

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

@c-antin
Copy link
Author

c-antin commented Sep 14, 2024

I'm working on a PR

@c-antin
Copy link
Author

c-antin commented Sep 15, 2024

See #1323

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant