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

tools: enforce consistent operator linebreak style #10178

Merged
merged 2 commits into from
Dec 10, 2016

Commits on Dec 10, 2016

  1. lib,test: use consistent operator linebreak style

    We have a tacit rule that for multiline statements, the operator should
    be placed before the linebreak. This commit commit fixes the few
    violations of this rule in the code base.
    This allows us to enable the corresponding ESLint rule.
    
    PR-URL: nodejs#10178
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Roman Reiss <me@silverwind.io>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    targos committed Dec 10, 2016
    Configuration menu
    Copy the full SHA
    4d11c2c View commit details
    Browse the repository at this point in the history
  2. tools: enforce consistent operator linebreak style

    Adds the `operator-linebreak` rule to our ESLint config.
    
    PR-URL: nodejs#10178
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Roman Reiss <me@silverwind.io>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    targos committed Dec 10, 2016
    Configuration menu
    Copy the full SHA
    7c2dbd1 View commit details
    Browse the repository at this point in the history