gajus / gajus/eslint-plugin-flowtype
require-variable-type: Turn off for function expressions
Open
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
Assessment
This issue has not been assessed yet.