docs: lint on catch undefined e

This commit is contained in:
Benjamin Canac
2024-08-22 12:07:17 +02:00
parent b7382f2057
commit 92f4d38cc3
4 changed files with 6 additions and 6 deletions

View File

@@ -189,7 +189,7 @@ const { data: ast } = await useAsyncData(`component-code-${name}-${JSON.stringif
semi: false,
singleQuote: true
})
} catch (e) {
} catch {
formatted = code.value
}

View File

@@ -57,7 +57,7 @@ const { data: ast } = await useAsyncData(`component-example-${camelName}`, async
semi: false,
singleQuote: true
})
} catch (e) {
} catch {
formatted = code.value
}

View File

@@ -56,11 +56,11 @@ export default defineAppConfig({
::
${strippedCompoundVariants.value
? `
? `
::callout{icon="i-simple-icons-github" to="https://github.com/benjamincanac/ui3/blob/dev/src/theme/${name}.ts"}
Some colors in \`compoundVariants\` are omitted for readability. Check out the source code on GitHub.
::`
: ''}
: ''}
`
let formatted = ''
@@ -70,7 +70,7 @@ Some colors in \`compoundVariants\` are omitted for readability. Check out the s
semi: false,
singleQuote: true
})
} catch (e) {
} catch {
formatted = md
}

View File

@@ -22,7 +22,7 @@ export default defineAppConfig({
semi: false,
singleQuote: true
})
} catch (e) {
} catch {
formatted = md
}