Skip to content

Turn off eslint rule: operator-assignment #2245

Closed
@ro-savage

Description

@ro-savage

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions