bug: `functional/prefer-tacit` has false positive in getter
Type: BugStatus: Released
## Bug Report
When using a getter, the `functional/prefer-tacit` rule reports an issue, but I believe this is incorrect.
### Expected behavior
No error
### Actual behavior
A lint error occurred.
### Steps to reproduce
```ts
const foo = () => {
const bar = () => {
return 1;
}
return {
get baz() {
return bar();
},
};
};
```
### Proposed changes
Skip the rule for getter.
关闭于 2025-06-02 1 条评论