@stayradiated/eslint-plugin-prefer-arrow-functions
Version:
Convert functions to arrow functions
14 lines (13 loc) • 788 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.USE_IMPLICIT = exports.USE_EXPLICIT = exports.USE_ARROW_WHEN_SINGLE_RETURN = exports.USE_ARROW_WHEN_FUNCTION = exports.DEFAULT_OPTIONS = void 0;
exports.DEFAULT_OPTIONS = {
classPropertiesAllowed: false,
disallowPrototype: false,
returnStyle: 'unchanged',
singleReturnOnly: false,
};
exports.USE_ARROW_WHEN_FUNCTION = 'Prefer using arrow functions over plain functions';
exports.USE_ARROW_WHEN_SINGLE_RETURN = 'Prefer using arrow functions when the function contains only a return';
exports.USE_EXPLICIT = 'Prefer using explicit returns when the arrow function contain only a return';
exports.USE_IMPLICIT = 'Prefer using implicit returns when the arrow function contain only a return';