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

chore: Extending "@guardian/tsconfig" in tsconfig #838

Merged
merged 18 commits into from
Nov 8, 2023

Conversation

akinsola-guardian
Copy link
Contributor

@akinsola-guardian akinsola-guardian commented Nov 1, 2023

What does this change?

As recommended by Joe Cowton, I've installed "@guardian/tsconfig" and extended it in the tsconfig.json.

Why?

To ensure that CMP linting standards align with the patterns recommended Client Side

Copy link

changeset-bot bot commented Nov 1, 2023

🦋 Changeset detected

Latest commit: 9be4825

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@guardian/consent-management-platform Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@akinsola-guardian akinsola-guardian changed the title Update tsconfig chore: Update tsconfig Nov 1, 2023
@akinsola-guardian akinsola-guardian changed the title chore: Update tsconfig chore: Extending "@guardian/tsconfig" in tsconfig Nov 1, 2023
@akinsola-guardian akinsola-guardian marked this pull request as ready for review November 3, 2023 12:03
@akinsola-guardian akinsola-guardian requested a review from a team as a code owner November 3, 2023 12:03
"outDir": "dist",
"allowJs": true,
"isolatedModules": true,
"module": "ES6",
Copy link
Member

Choose a reason for hiding this comment

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

do you need this value specifically? the default from the config is esnext

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've removed the module from this tsconfig.json file. However, I had to add the "module": "commonjs" to monitoring/tsconfig.json

@akinsola-guardian akinsola-guardian requested a review from a team November 6, 2023 09:35
cypress/tsconfig.json Outdated Show resolved Hide resolved
joecowton1
joecowton1 previously approved these changes Nov 7, 2023
Copy link
Contributor

@sookburt sookburt left a comment

Choose a reason for hiding this comment

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

Looks good!

@akinsola-guardian akinsola-guardian merged commit 6d390ce into main Nov 8, 2023
@akinsola-guardian akinsola-guardian deleted the al-update-tsconfig branch November 8, 2023 09:45
@mxdvl
Copy link
Contributor

mxdvl commented Nov 9, 2023

I believe this has produced an invalid output for the types, as this version of the library fails to compile with TypeScript in frontend: guardian/frontend#26680

It seems like the Consent State object is now typed as any.

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.

5 participants