gajus / gajus/eslint-plugin-flowtype

suppress no-undef in case of [[call]]

Open
#346 1 comment 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

`$call` has been deprecated in favour of `[[call]]`.

https://github.com/facebook/flow/releases/tag/v0.75.0

```js
export type LoggerType = {|
[[call]]: typeof Logger
|};
```

The above use of `call` triggers `no-undef` error.

Contributor guide

Open the contributing guide

Research direction

The issue provides a JavaScript/Flow snippet but no file or test path. Start by reproducing it with eslint-plugin-flowtype and inspect how the no-undef error is produced for [[call]]; done means that syntax no longer triggers the error, with a regression test covering the example.

Written by the indexing model from the issue text.

Assessment

Tech stack
eslint, javascript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.