diff --git a/.eslintrc b/.eslintrc index 1854a48b..9c181942 100644 --- a/.eslintrc +++ b/.eslintrc @@ -26,6 +26,15 @@ "anonymous": "always", "named": "never", }], + "no-extra-parens": ["error", "all", { + "conditionalAssign": false, + "nestedBinaryExpressions": false, + "returnAssign": false, + "ignoreJSX": "all", + "enforceForArrowConditionals": false, + "enforceForSequenceExpressions": true, + "enforceForNewInMemberExpressions": false, + }], "no-extra-semi": "error", "no-shadow": ["error", { "builtinGlobals": false, diff --git a/lib/results.js b/lib/results.js index eac95bb8..92258b03 100644 --- a/lib/results.js +++ b/lib/results.js @@ -164,9 +164,9 @@ function encodeResult(res, count) { output += res.name ? ' ' + coalesceWhiteSpaces(res.name) : ''; if (res.skip) { - output += ' # SKIP' + ((typeof res.skip === 'string') ? ' ' + coalesceWhiteSpaces(res.skip) : ''); + output += ' # SKIP' + (typeof res.skip === 'string' ? ' ' + coalesceWhiteSpaces(res.skip) : ''); } else if (res.todo) { - output += ' # TODO' + ((typeof res.todo === 'string') ? ' ' + coalesceWhiteSpaces(res.todo) : ''); + output += ' # TODO' + (typeof res.todo === 'string' ? ' ' + coalesceWhiteSpaces(res.todo) : ''); } output += '\n';