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

feat: add curly lint rule #1383

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

feat: add curly lint rule #1383

wants to merge 2 commits into from

Conversation

marvinhagemeister
Copy link
Contributor

This PR adds a lint rule for consistent curly braces around control statements. It's similar to eslint's https://eslint.org/docs/latest/rules/curly rule.

Fixes denoland/deno#27493

Docs: denoland/docs#1302

src/rules/curly.rs Outdated Show resolved Hide resolved
Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Going to block the merge of this one. I'm not sure this should be a lint rule because it's something that can be enforced via code formatting. It also conflicts with what deno fmt currently does: https://dprint.dev/playground/#code/JYMwFALgTgrgpgSgAQG8kGMD2A7AzpgGzgDoDMBzMAVgQG4kBfIA/config/N4KABGBEAmCmB2B7SAuMAXATgV1iAvkA/plugin/typescript

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

Successfully merging this pull request may close these issues.

3 participants