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

Transform ' to " #231

Open
lionel- opened this issue Feb 19, 2025 · 1 comment
Open

Transform ' to " #231

lionel- opened this issue Feb 19, 2025 · 1 comment

Comments

@lionel-
Copy link
Collaborator

lionel- commented Feb 19, 2025

This should possibly be one of the few options in the formatter. The tidyverse style guide recommends " but I think it's legitimate to use ' in codebases or projects that also use Python of JS/TS where ' is the norm.

@lionel-
Copy link
Collaborator Author

lionel- commented Feb 19, 2025

A similar issue is = vs <-. Multi-lingual codebases might prefer = to make context switches easier. Either we deal with this through linting or we add an air.toml option.

I think I'd like the formatter to normalise these though. This makes it easier to copy paste code from repos that have different conventions.

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