ITADN

bug: `functional/prefer-tacit` has false positive in getter

#964Closedbaseballyama 创建于 2025-05-07
Type: BugStatus: Released
B
baseballyamacommented
## 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 条评论