diff --git a/packages/eslint-config/eslintrc.js b/packages/eslint-config/eslintrc.js index 68060a76d..c9603df94 100644 --- a/packages/eslint-config/eslintrc.js +++ b/packages/eslint-config/eslintrc.js @@ -79,6 +79,7 @@ module.exports = { '=': 'none', '|': 'before', '||': 'before', + '&&': 'before', ':': 'before', '?': 'before', }, diff --git a/packages/eslint-config/test/fixture/operator-linebreak-fix.js b/packages/eslint-config/test/fixture/operator-linebreak-fix.js index ffcf79b17..a7a8ba653 100644 --- a/packages/eslint-config/test/fixture/operator-linebreak-fix.js +++ b/packages/eslint-config/test/fixture/operator-linebreak-fix.js @@ -7,3 +7,9 @@ x = z : s; x = x ? y : s; + +const isIndent = 0 + || 1 + && 2 + && 3 + && 4; diff --git a/packages/eslint-config/test/fixture/operator-linebreak.js b/packages/eslint-config/test/fixture/operator-linebreak.js index 599d8ebbc..ff39dfdb1 100644 --- a/packages/eslint-config/test/fixture/operator-linebreak.js +++ b/packages/eslint-config/test/fixture/operator-linebreak.js @@ -11,3 +11,9 @@ x = z : s; x = x ? y : s; + +const isIndent = 0 + || 1 + && 2 + && 3 + && 4;