Showing 2 of 4 total issues
Function default
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function (validators = []) {
if (validators.length === 0) { // eslint-disable-line functional/no-conditional-statements
throw new Error('No validators provided');
}
Avoid too many return
statements within this function. Open
Open
return results;