Skip to content

Conversation

@sarahetter
Copy link
Contributor

The no-unused-vars eslint rule causes issues with Typescript, such as flagging an issue with flowArgs below being "unused".

type FlowableFunction = (...flowArgs: Headers) => any;

I checked in our next&gatsby plugins, and the gatsby plugin does not explicitly say to error as we were doing here (no-unused-vars is not mentioned at all in .eslintrc), and the next plugin explicitly turns off this rule ('no-unused-vars': 0), so I have removed this one as well.

I've created a draft issue in our board for us to think about getting all of our repos aligned in regards to the .eslintrc.js files.

@sarahetter sarahetter added the type: chore work needed to keep the product and development running smoothly label May 18, 2022
@sarahetter sarahetter requested a review from a team May 18, 2022 19:58
@sarahetter sarahetter mentioned this pull request May 18, 2022
Copy link
Contributor

@nickytonline nickytonline left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

@sarahetter sarahetter merged commit 187dff7 into main May 18, 2022
@sarahetter sarahetter deleted the eslint-changes branch May 18, 2022 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: chore work needed to keep the product and development running smoothly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants