summaryrefslogtreecommitdiff
path: root/packages/integrations/lit/server.js
diff options
context:
space:
mode:
authorGravatar Josh Goldberg ✨ <git@joshuakgoldberg.com> 2023-07-03 05:59:43 -0700
committerGravatar GitHub <noreply@github.com> 2023-07-03 20:59:43 +0800
commit2fea174303ca60f4765c6294d99ebc7a19e73403 (patch)
tree671f1f27d6d0827e51aaa20704b7f6154ad5d053 /packages/integrations/lit/server.js
parentfc6826ff7620b0c5e419de93ef7c463a12fe3652 (diff)
downloadastro-2fea174303ca60f4765c6294d99ebc7a19e73403.tar.gz
astro-2fea174303ca60f4765c6294d99ebc7a19e73403.tar.zst
astro-2fea174303ca60f4765c6294d99ebc7a19e73403.zip
feat: use typescript-eslint@v6's reworked configs (#7425)
Diffstat (limited to 'packages/integrations/lit/server.js')
-rw-r--r--packages/integrations/lit/server.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/integrations/lit/server.js b/packages/integrations/lit/server.js
index d4ca4e08f..d71ccee47 100644
--- a/packages/integrations/lit/server.js
+++ b/packages/integrations/lit/server.js
@@ -17,10 +17,10 @@ function getCustomElementConstructor(name) {
async function isLitElement(Component) {
const Ctr = getCustomElementConstructor(Component);
- return !!(Ctr && Ctr._$litElement$);
+ return !!Ctr?._$litElement$;
}
-async function check(Component, _props, _children) {
+async function check(Component) {
// Lit doesn't support getting a tagName from a Constructor at this time.
// So this must be a string at the moment.
return !!(await isLitElement(Component));