From d672aada600e4e37f25d136b0e85a5f21a8a3c00 Mon Sep 17 00:00:00 2001 From: Robert Kossessa Date: Tue, 23 Jan 2024 01:41:46 +0100 Subject: [PATCH] ADD: web-types to accept vue-i18n directive --- package.json | 3 ++- web-types.json | 28 ++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 web-types.json diff --git a/package.json b/package.json index adf97a5..f058f4d 100644 --- a/package.json +++ b/package.json @@ -105,5 +105,6 @@ "semi": false, "singleQuote": true }, - "type": "module" + "type": "module", + "web-types": "./web-types.json" } diff --git a/web-types.json b/web-types.json new file mode 100644 index 0000000..02fc3c5 --- /dev/null +++ b/web-types.json @@ -0,0 +1,28 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "framework": "vue", + "js-types-syntax": "typescript", + "description-markup": "markdown", + "framework-config": { + "enable-when": { + "file-extensions": [ + "vue" + ] + } + }, + "contributions": { + "html": { + "vue-directives": [ + { + "name": "t", + "description": "", + "doc-url": "", + "attribute-value": { + "type": "boolean", + "required": false + } + } + ] + } + } +} \ No newline at end of file