From 87b7dbfc6393779c0f1127f4dc87a64347e724aa Mon Sep 17 00:00:00 2001 From: Laurent De Smet Date: Fri, 8 Jun 2018 15:03:54 +0200 Subject: [PATCH] Add an exception so a linebreak should happen before the pipeline operator --- eslintrc.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eslintrc.json b/eslintrc.json index 4b5db8a9..b170a58c 100644 --- a/eslintrc.json +++ b/eslintrc.json @@ -159,7 +159,7 @@ "no-with": "error", "object-property-newline": ["error", { "allowMultiplePropertiesPerLine": true }], "one-var": ["error", { "initialized": "never" }], - "operator-linebreak": ["error", "after", { "overrides": { "?": "before", ":": "before" } }], + "operator-linebreak": ["error", "after", { "overrides": { "?": "before", ":": "before", "|>": "before" } }], "padded-blocks": ["error", { "blocks": "never", "switches": "never", "classes": "never" }], "prefer-promise-reject-errors": "error", "quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }],