Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use @typescript-eslint/no-unused-vars (#221)
- See ipfs/aegir#1459 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](https://github.com/standard/eslint-config-standard/blob/master/src/index.ts#L143) the [`no-fallthrough`](https://eslint.org/docs/latest/rules/no-fallthrough) rule. So this PR only needs to enforce `noUnusedLocal`, and we just add [`@typescript-eslint/no-unused-vars`](https://typescript-eslint.io/rules/no-unused-vars/).
- Loading branch information