@stayradiated/eslint-plugin-prefer-arrow-functions
Version:
Convert functions to arrow functions
11 lines (10 loc) • 623 B
TypeScript
export declare const DEFAULT_OPTIONS: {
classPropertiesAllowed: boolean;
disallowPrototype: boolean;
returnStyle: string;
singleReturnOnly: boolean;
};
export declare const USE_ARROW_WHEN_FUNCTION = "Prefer using arrow functions over plain functions";
export declare const USE_ARROW_WHEN_SINGLE_RETURN = "Prefer using arrow functions when the function contains only a return";
export declare const USE_EXPLICIT = "Prefer using explicit returns when the arrow function contain only a return";
export declare const USE_IMPLICIT = "Prefer using implicit returns when the arrow function contain only a return";