src/core/config/schema-validator.js
Function _formatSchemaErrors
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_formatSchemaErrors(errors) {
const filteredRules = [];
return errors
.map(error => {
Avoid too many return
statements within this function. Open
Open
return `"${field}" ${error.message}. Value: ${JSON.stringify(error.data)}`;
Avoid too many return
statements within this function. Open
Open
return `"${field}" ${error.message} [${error.params.allowedValues}]`;
Parsing error: The keyword 'const' is reserved Open
Open
const debug = require('debug')('adviser:schema-validator');
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/