diff --git a/playground/app/components/DiagnosticCard.vue b/playground/app/components/DiagnosticCard.vue new file mode 100644 index 00000000..8cd948a8 --- /dev/null +++ b/playground/app/components/DiagnosticCard.vue @@ -0,0 +1,54 @@ + + + + + + + {{ diagnostic.severity.toUpperCase() }}[{{ diagnostic.code }}]: + {{ diagnostic.message }} + + + {{ formatCodeFrame(diagnostic.span, rawRecipe) }} + + + Fix: {{ diagnostic.fix }} + + + See: + {{ diagnostic.docs }} + + + + diff --git a/playground/app/pages/index.vue b/playground/app/pages/index.vue index 4a44c02e..4954465f 100644 --- a/playground/app/pages/index.vue +++ b/playground/app/pages/index.vue @@ -1,7 +1,11 @@
{{ formatCodeFrame(diagnostic.span, rawRecipe) }}