Skip to content

Commit

Permalink
[eslint] enable no-extra-parens
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jul 26, 2021
1 parent 7dcbd76 commit a08dc34
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .eslintrc
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions lib/results.js
Expand Up @@ -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';
Expand Down

0 comments on commit a08dc34

Please sign in to comment.