Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request to release new version of the library to fix issues with object literal returns #583

Open
hsource opened this issue Jan 24, 2025 · 0 comments

Comments

@hsource
Copy link

hsource commented Jan 24, 2025

We had trouble with npx suppress-eslint-errors --extensions=ts,tsx --parser=tsx someFile seeming to fail on lines like this

  const myFunction = ({
    arg1,
    arg2,
    arg3,
    arg4,
    arg5,
  }: InputType) => ({
    a: 1,
    b: 2,
  });

When running it, it would accidentally remove the object literal return:

  const myFunction = ({
    arg1,
    arg2,
    arg3,
    arg4,
    arg5,
    // TODO: Change OutputType to fix linting error
  }: InputType) => {
    a: 1,
    b: 2,
  };

Note that running npx github:amanda-mitchell/suppress-eslint-errors --extensions=ts,tsx --parser=tsx seems to fix the issue. This suggests the issue is with a dependency that this Github repo has since automatically upgraded.

Can you release the latest version as an NPM package so others don't encounter this problem? Thanks in advance for the great library!

@hsource hsource changed the title Request to release new version of the library Request to release new version of the library to fix issues with object literal returns Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant