Skip to content

chore(website): enable strict compiler option #6012

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

Merged
merged 1 commit into from
Nov 26, 2021
Merged

Conversation

Josh-Cena
Copy link
Collaborator

@Josh-Cena Josh-Cena commented Nov 26, 2021

Motivation

When working on #5997 I was a little confused by undefined and null not being caught by TS. Enabling strict helps catch type errors early and also helps us dogfood our typing better.

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

cd website && tsc

@Josh-Cena Josh-Cena added the pr: maintenance This PR does not produce any behavior differences to end users when upgrading. label Nov 26, 2021
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Nov 26, 2021
@netlify
Copy link

netlify bot commented Nov 26, 2021

✔️ [V2]

🔨 Explore the source changes: bc72e63

🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/61a0b0c9bee6800007461bea

😎 Browse the preview: https://deploy-preview-6012--docusaurus-2.netlify.app

@github-actions
Copy link

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟢 Performance 96
🟢 Accessibility 98
🟢 Best practices 100
🟢 SEO 100
🟢 PWA 95

Lighthouse ran on https://deploy-preview-6012--docusaurus-2.netlify.app/

@Josh-Cena Josh-Cena changed the title chore(website): enable strict compilerOption chore(website): enable strict compiler option Nov 26, 2021
@Josh-Cena Josh-Cena merged commit 3334bfb into main Nov 26, 2021
@Josh-Cena Josh-Cena deleted the jc/website-strict branch November 26, 2021 10:14
@github-actions
Copy link

Size Change: -247 kB (-28%) 🎉

Total Size: 644 kB

Filename Size Change
website/build/blog/2017/12/14/introducing-docusaurus/index.html 0 B -66.2 kB (removed) 🏆
website/build/blog/index.html 0 B -37.8 kB (removed) 🏆
website/build/docs/index.html 0 B -44 kB (removed) 🏆
website/build/docs/installation/index.html 0 B -51.7 kB (removed) 🏆
website/build/tests/docs/index.html 0 B -25.2 kB (removed) 🏆
website/build/tests/docs/standalone/index.html 0 B -21.7 kB (removed) 🏆
ℹ️ View Unchanged
Filename Size Change
website/.docusaurus/globalData.json 38.3 kB 0 B
website/build/assets/css/styles.********.css 99.5 kB 0 B
website/build/assets/js/main.********.js 477 kB +8 B (0%)
website/build/index.html 29.5 kB -5 B (0%)

compressed-size-action

@slorber
Copy link
Collaborator

slorber commented Nov 30, 2021

oh weird, didn't know it wasn't enabled

maybe we should add this to the shared config as well? For me it's better to be strict by default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: maintenance This PR does not produce any behavior differences to end users when upgrading.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants