You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The linting in the console / terminal is suppose to be sensible defaults + things that cause common bugs.
The operator-assignment rule is generally just visual (and plenty of people argue for and against).
total = total + subtotal
vs total += subtotal
or
total = total + (parseInt(ticket.ticketPrice, 10) * parseInt(ticket.ticketCount, 10))
vs total += parseInt(ticket.ticketPrice, 10) * parseInt(ticket.ticketCount, 10)
The linting rule should be removed so people can choose their own preference.
Happy to submit PR if approved.
The text was updated successfully, but these errors were encountered:
The linting in the console / terminal is suppose to be sensible defaults + things that cause common bugs.
The operator-assignment rule is generally just visual (and plenty of people argue for and against).
total = total + subtotal
vs
total += subtotal
or
total = total + (parseInt(ticket.ticketPrice, 10) * parseInt(ticket.ticketCount, 10))
vs
total += parseInt(ticket.ticketPrice, 10) * parseInt(ticket.ticketCount, 10)
The linting rule should be removed so people can choose their own preference.
Happy to submit PR if approved.
The text was updated successfully, but these errors were encountered: