Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix: Support ESLint 8.x #136

Merged
merged 5 commits into from
Mar 23, 2022
Merged

fix: Support ESLint 8.x #136

merged 5 commits into from
Mar 23, 2022

Conversation

@@ -9,6 +9,7 @@ module.exports = {
{
files: ['**/*.js', '**/*.jsx'],
rules: {
'@typescript-eslint/no-unsafe-argument': 'off',
Copy link
Member Author

Choose a reason for hiding this comment

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

@typescript-eslint/no-unsafe-argument is a new recommended rule that is likely to result in a bunch of linting errors across existing projects. For reference, skuba itself required the following tweaks: seek-oss/skuba@b887ccf

Currently, we're only disabling it for JavaScript source files and tests. Should we be less aggressive across the board by e.g. defaulting it to warn instead of error to begin with? The counterpoint is that warnings are often left ignored, which is why we tend to avoid warns elsewhere in the config.

Copy link
Member Author

Choose a reason for hiding this comment

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

I wonder if you have an opinion here @samchungy, I noticed the Orders API has some warnings 😅

Copy link
Contributor

Choose a reason for hiding this comment

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

It seems like a good rule but I can see how it would be noisy on an existing code base. I'm leaning towards leaving it on and trusting upstream.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hahaha don't look at that repo... 🙈 Funnily enough it's not even the most pressing issue with that repo 😭.

My plan was to leave those warnings on until it annoys enough people for us to allocate time to it 😂. Leave it on is my opinion too. Worst case they can turn it off

@72636c 72636c marked this pull request as ready for review March 23, 2022 04:42
@72636c 72636c requested a review from a team as a code owner March 23, 2022 04:42
@72636c 72636c merged commit ef0808f into master Mar 23, 2022
@72636c 72636c deleted the eslint-8 branch March 23, 2022 08:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants