mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-21 07:21:46 +01:00
docs: lint on catch undefined e
This commit is contained in:
@@ -189,7 +189,7 @@ const { data: ast } = await useAsyncData(`component-code-${name}-${JSON.stringif
|
||||
semi: false,
|
||||
singleQuote: true
|
||||
})
|
||||
} catch (e) {
|
||||
} catch {
|
||||
formatted = code.value
|
||||
}
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ const { data: ast } = await useAsyncData(`component-example-${camelName}`, async
|
||||
semi: false,
|
||||
singleQuote: true
|
||||
})
|
||||
} catch (e) {
|
||||
} catch {
|
||||
formatted = code.value
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ export default defineAppConfig({
|
||||
semi: false,
|
||||
singleQuote: true
|
||||
})
|
||||
} catch (e) {
|
||||
} catch {
|
||||
formatted = md
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user