| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Updates the repository’s ESLint configuration to enforce that all unused function parameters must be explicitly marked as unused by starting with _, helping identify unnecessary computed/propagated values (e.g., when cleaning up legacy GHES code paths).
Changes:
Sorry, something went wrong.
| "@typescript-eslint/no-unused-vars": [ | ||
| "error", | ||
| { | ||
| "args": "all", |
There was a problem hiding this comment.
Do you think that this is needed as of #3497 since it seemed to be working as expected before that?
Sorry, something went wrong.
There was a problem hiding this comment.
I think that's likely, though I haven't checked.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
The default setting for this lint rule doesn't check function parameters, but in our codebase we are often cleaning up code paths for older versions of GHES, therefore it's desirable to check whether something is being passed that we could possibly avoid computing in the first place.