We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Disallow usage of unnecessary intermediate variables. They may confuse readers of the code
This code should return an ERROR
let now = Date.now() message.lastViewTime = now
This is CORRECT
message.lastViewTime = Date.now()
So if a variable is used only once and it is the only operand of the assignment = operator then it is a violation of this rule
=
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Disallow usage of unnecessary intermediate variables. They may confuse readers of the code
This code should return an ERROR
This is CORRECT
So if a variable is used only once and it is the only operand of the assignment
=
operator then it is a violation of this ruleThe text was updated successfully, but these errors were encountered: