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

Value Comparision Style Rule (Patch Version) #31

Closed
trolit opened this issue May 4, 2022 · 0 comments · Fixed by #33
Closed

Value Comparision Style Rule (Patch Version) #31

trolit opened this issue May 4, 2022 · 0 comments · Fixed by #33
Assignees
Labels
feature New feature or request

Comments

@trolit
Copy link
Owner

trolit commented May 4, 2022

Implement rule that allows to set how comparision statements should be expressed

Longhand

if (isValid === true) {
 // do something ...
}

if (isValid === false) {
 // do something ...
}

Shorthand

if (isValid) {
 // do something ...
}

if (!isValid) {
 // do something ...
}

PS: more details about complications in rule's documentation

@trolit trolit self-assigned this May 4, 2022
@trolit trolit added the feature New feature or request label May 4, 2022
@trolit trolit moved this from To Do to In Progress in Patchron May 4, 2022
@trolit trolit changed the title Comparision Style Rule Value Comparision Style Rule May 4, 2022
@trolit trolit changed the title Value Comparision Style Rule Value Comparision Style Rule (Patch Version) May 12, 2022
@trolit trolit moved this from In Progress to Pull Requested in Patchron May 13, 2022
@trolit trolit linked a pull request May 13, 2022 that will close this issue
Repository owner moved this from Pull Requested to Merged in Patchron May 13, 2022
@trolit trolit added the 1.0.0 label Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
Status: Merged
Development

Successfully merging a pull request may close this issue.

1 participant