From 3f21f863582abcde9282c1dffc8e72af236a85fe Mon Sep 17 00:00:00 2001 From: bluwy Date: Thu, 28 Sep 2023 21:36:47 +0800 Subject: [PATCH] Fix message border styles --- pkg/src/index.js | 2 +- site/src/components/PkgNode.svelte | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pkg/src/index.js b/pkg/src/index.js index 6f44622..c0fab4f 100755 --- a/pkg/src/index.js +++ b/pkg/src/index.js @@ -166,7 +166,7 @@ export async function publint({ pkgDir, vfs, level, strict, _packedFiles }) { ]) if (moduleContent === false) return if (hasInvalidJsxExtension(module, modulePkgPath)) return - if (!isFilePathLintable(main)) return + if (!isFilePathLintable(module)) return const actualFormat = getCodeFormat(moduleContent) if (actualFormat === 'CJS') { messages.push({ diff --git a/site/src/components/PkgNode.svelte b/site/src/components/PkgNode.svelte index a339ced..8eb2046 100644 --- a/site/src/components/PkgNode.svelte +++ b/site/src/components/PkgNode.svelte @@ -77,7 +77,7 @@
{@html formatMessage(msg, pkg)} @@ -122,6 +122,10 @@ margin-left: var(--indent-ch); } + .message ~ .message { + border-top: 0; + } + @media (prefers-color-scheme: dark) { .key { color: #9cdcfe;