Skip to content

Commit

Permalink
feature: @putout/eslint-config: operator-linebreak: ||
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Dec 18, 2024
1 parent 7f5c8f6 commit 303c420
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/eslint-config/eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ module.exports = {
'=': 'none',
'|': 'before',
'||': 'before',
'&&': 'before',
':': 'before',
'?': 'before',
},
Expand Down
6 changes: 6 additions & 0 deletions packages/eslint-config/test/fixture/operator-linebreak-fix.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@ x = z
: s;

x = x ? y : s;

const isIndent = 0
|| 1
&& 2
&& 3
&& 4;
6 changes: 6 additions & 0 deletions packages/eslint-config/test/fixture/operator-linebreak.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ x = z
: s;

x = x ? y : s;

const isIndent = 0
|| 1
&& 2
&& 3
&& 4;

0 comments on commit 303c420

Please sign in to comment.