gajus / gajus/eslint-plugin-flowtype

require-variable-type: Turn off for function expressions

Open
#309 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
1.1k
Forks
151
PR merge metrics
No merged PRs in 30d

Description

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

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

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

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.