Skip to content

Commit

Permalink
Merge branch 'main' into mt/starlight
Browse files Browse the repository at this point in the history
  • Loading branch information
martrapp authored Apr 1, 2024
2 parents 08fd934 + 3141b05 commit 758dccd
Show file tree
Hide file tree
Showing 5 changed files with 2,476 additions and 392 deletions.
5 changes: 5 additions & 0 deletions .changeset/four-owls-compete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"astro-vtbot": patch
---

[Linter]: Stop complaining about unused styling scopes.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ A current deployment of tech demos and the documentation can be found at https:/
The `astro-vtbot`package isn't a monolithic library. Use the components you need and only pay bandwidth for those.
|Component|Brotli bytes added|
|-------|-----------------|
Animation Style ✨| ~0.1k
BrakePad πŸ¦₯ | ~0.1k
Linter 🧹 | ~2.0k
LoadingIndicator ⏳ | ~0.6k
Expand All @@ -41,7 +42,7 @@ Portal πŸšͺ | ~0.3k
ReplacementSwap β†Ή | ~0.5k
Starlight … 🌟 | ~3.0k
Swing 🎷 | ~0.5k
VtBotDebug πŸ› | ~2.6k
VtBotDebug πŸ› | ~2.7k
Zoom πŸ”Ž | ~0.5k

Visit [the documentation](https://events-3bg.pages.dev/components/) of the reusable components for detailed information.
Expand Down
13 changes: 0 additions & 13 deletions components/Linter.astro
Original file line number Diff line number Diff line change
Expand Up @@ -229,19 +229,6 @@ const active = import.meta.env.DEV || production;
);
console.groupEnd();
});
if (notUsed.size > 0) {
group(
`%c[vtbot-linter] Unused styles can remain if for example all originally using HTML elements have been moved to another DOM. `,
WARNING
);
notUsed.forEach((id) => {
console.log(
`%c[vtbot-linter] scoped style id "${id}" is defined ${here} but not used in any HTML element. `,
WARNING
);
});
console.groupEnd();
}
}

function flagSuspiciousScriptTypes(event: TransitionBeforeSwapEvent) {
Expand Down
Loading

0 comments on commit 758dccd

Please sign in to comment.