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": {