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

fix: use @typescript-eslint/no-unused-vars #221

Merged
merged 2 commits into from
May 1, 2024

Conversation

wemeetagain
Copy link
Member

@wemeetagain wemeetagain commented Apr 19, 2024

Aegir currently relies on typescript to perform two linter rules, which is annoying for reasons mentioned in the above issue.

  • noFallthroughCasesInSwitch
  • noUnusedLocals

This PR makes typescript rules more strict to enforce both of these conditions.

For noFallthroughCasesInSwitch, it appears that the standard eslint rule set already includes the no-fallthrough rule.
So this PR only needs to enforce noUnusedLocal, and we just add @typescript-eslint/no-unused-vars.

@achingbrain achingbrain merged commit 9a95776 into main May 1, 2024
17 checks passed
@achingbrain achingbrain deleted the fix/align-aegir-ts-linter-rules branch May 1, 2024 09:42
github-actions bot pushed a commit that referenced this pull request May 1, 2024
## [6.0.2](v6.0.1...v6.0.2) (2024-05-01)

### Bug Fixes

* use @typescript-eslint/no-unused-vars ([#221](#221)) ([9a95776](9a95776)), closes [/github.com/standard/eslint-config-standard/blob/master/src/index.ts#L143](https://github.com/ipfs//github.com/standard/eslint-config-standard/blob/master/src/index.ts/issues/L143)

### Trivial Changes

* Update .github/workflows/stale.yml [skip ci] ([1f9ebc6](1f9ebc6))
Copy link

github-actions bot commented May 1, 2024

🎉 This PR is included in version 6.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants