Skip to content

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

Closed
@baseballyama

Description

@baseballyama

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

const foo = () => {
  const bar = () => {
    return 1;
  }

  return {
    get baz() {
      return bar();
    },
  };
};

Proposed changes

Skip the rule for getter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: ReleasedIt's now live.Type: BugInconsistencies or issues which will cause a problem for users or implementors.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions