eslint-plugin-flowtype icon indicating copy to clipboard operation
eslint-plugin-flowtype copied to clipboard

require-variable-type: Turn off for function expressions

Open lararosekelley opened this issue 7 years ago • 0 comments

Would be helpful to be able to have a setting such as excludeFunctionExpressions or something so that I can write code like this:

const myFunc = function myFunc: boolean {
    return true;
};

It's just so redundant to have to write something like this when using named function expressions:

const myFunc: Function = function myFunc(): boolean {
    return true;
};

lararosekelley avatar Feb 02 '18 03:02 lararosekelley