Skip to content

Commit

Permalink
[eslint] enable and autofix no-useless-return
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed May 19, 2019
1 parent b700f7d commit d685904
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"array-callback-return": 1,
"no-restricted-syntax": 1,
"implicit-arrow-linebreak": 1,
"no-useless-return": 1,
"valid-jsdoc": 1,
},
"overrides": [
Expand Down
2 changes: 0 additions & 2 deletions lib/rules/jsx-first-prop-new-line.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,8 @@ module.exports = {
return fixer.replaceTextRange([node.name.range[1], firstNode.range[0]], ' ');
}
});
return;
}
}
return;
}
};
}
Expand Down
2 changes: 0 additions & 2 deletions lib/rules/no-array-index-key.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,6 @@ module.exports = {
identifiers.filter(isArrayIndex).forEach(() => {
context.report({node: node, message: ERROR_MESSAGE});
});

return;
}
}

Expand Down

0 comments on commit d685904

Please sign in to comment.