Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update autoconsent #101

Merged
merged 5 commits into from
Sep 3, 2024
Merged

Update autoconsent #101

merged 5 commits into from
Sep 3, 2024

Conversation

muodov
Copy link
Member

@muodov muodov commented Sep 2, 2024

After bumping autoconsent version, tsc started giving weird lint errors inside the autoconsent folder. Excluding paths didn't work, so I had to change the way we lint too

@muodov muodov requested a review from kdzwinel September 2, 2024 14:43
Copy link
Member

@kdzwinel kdzwinel left a comment

Choose a reason for hiding this comment

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

Thanks for this, I left some small questions.

@@ -186,14 +186,15 @@ class CMPCollector extends BaseCollector {
this.receivedMsgs.push(msg);
switch (msg.type) {
case 'init': {
/** @type {AutoconsentConfig} */
Copy link
Member

Choose a reason for hiding this comment

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

TIL about <Partial>, but doesn't it mean that we DON'T have to include isMainWorld: false below? Or is the default true?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep, you are right, it would work without it, but I just wanted to make it explicit.

package.json Outdated
@@ -7,7 +7,7 @@
"main": "main.js",
"scripts": {
"crawl": "node ./cli/crawl-cli",
"test": "npm run lint && tsc && npm run unit",
Copy link
Member

Choose a reason for hiding this comment

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

hm, doesn't this remove typechecking? I think we want typechecking. Or is this run somehow via lint now?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hm, I was sure typescript-eslint did typecheking, but apparently it needs another config. I tried to enable it, but got a bunch of new errors (our code is messy), so I added tsc back here.

@muodov muodov requested a review from kdzwinel September 3, 2024 08:33
Copy link
Member

@kdzwinel kdzwinel left a comment

Choose a reason for hiding this comment

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

LGTM, thanks Max!

@muodov muodov merged commit 7231f25 into main Sep 3, 2024
3 checks passed
@muodov muodov deleted the update-autoconsent branch September 3, 2024 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants