Skip to content

Conversation

@OrRosenblatt
Copy link
Contributor

@OrRosenblatt OrRosenblatt commented Oct 26, 2024

Description

This PR purpose a few linter fixes:

  • Suggest different lint:fix command, as the current command throws command "lint" not found. error.
  • Fix sonarjs/no-duplicate-string linter error introduced by feat: new --exclude and --ignore CLI options. #345 without disabling the error for the line.
  • Fix couple of @typescript-eslint/no-unused-vars linter warnings.

@OrRosenblatt OrRosenblatt changed the title chore: small linter improvements chore: small linter fixes/improvements Oct 26, 2024
],
[{ exclude: [] }, ['exclude'], []],
[
{ exclude: ['@scope/package'] }, // eslint-disable-line sonarjs/no-duplicate-string
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO @scope/package is fine. Let's add test/ts/util.ts to the rule exclusions instead.
https://github.com/antongolub/yarn-audit-fix/blob/master/src/test/lint/.eslintrc.json#L6

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done: 13c91de

@sonarqubecloud
Copy link

Copy link
Owner

@antongolub antongolub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. Thanks

@antongolub antongolub merged commit e45dd6a into antongolub:master Oct 28, 2024
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

Successfully merging this pull request may close these issues.

2 participants