Skip to content

Commit a92f2ad

Browse files
targosFishrock123
authored andcommitted
tools: enforce consistent operator linebreak style
Adds the `operator-linebreak` rule to our ESLint config. PR-URL: #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>
1 parent b6a8bc6 commit a92f2ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.eslintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ rules:
9393
no-multiple-empty-lines: [2, {max: 2, maxEOF: 0, maxBOF: 0}]
9494
no-tabs: 2
9595
no-trailing-spaces: 2
96+
operator-linebreak: [2, after, {overrides: {'?': ignore, ':': ignore}}]
9697
quotes: [2, single, avoid-escape]
9798
semi: 2
9899
semi-spacing: 2

0 commit comments

Comments
 (0)