From 14c7242defe4ef0b3791d09d4659a2a88793f31c Mon Sep 17 00:00:00 2001 From: Jan Holthuis Date: Sun, 19 Jan 2020 20:00:58 +0100 Subject: [PATCH] .eslintrc.json: Disallow unneeded ternary ops and spaces before func parens --- .eslintrc.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.eslintrc.json b/.eslintrc.json index 2b6014be71d..2a31b312031 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -24,6 +24,9 @@ "keyword-spacing": "warn", "linebreak-style": ["warn", "unix"], "no-trailing-spaces": "warn", + "no-unneeded-ternary": ["warn", { + "defaultAssignment": false + }], "no-unused-vars": ["error", { "argsIgnorePattern": "^_" }], @@ -32,6 +35,7 @@ "require-atomic-updates": "error", "semi": "warn", "semi-spacing": "warn", + "space-before-function-paren": ["warn", "never"], "space-in-parens": "warn" }, "globals": {