Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Ignore args required for strong typing correctness (#53)
* Ignore args required for strong typing correctness In our codebase, we have this pattern: ```js animate = (_: ?number) => {}; ``` That triggers the unused-vars warning due to the argument being unused. In this instance, the argument is there to pass strong-type checks, and we have a code style guideline that uses prepending of underscore to signify that the argument (or catch variable) is unused. This PR adds a narrowing and widening of the no-unused-vars rule: 1. to ignore unused arguments that begin with an underscore (a narrowing) 2. to report unused caught exceptions that don't begin with an underscore (a widening since unused caught errors was previously OFF by default) * Add test * derp * Eliminate style errors in test file.
- Loading branch information