ADD: web-types to accept vue-i18n directive

This commit is contained in:
Robert Kossessa
2024-01-23 01:41:46 +01:00
parent 5818d6fda4
commit d672aada60
2 changed files with 30 additions and 1 deletions

View File

@@ -105,5 +105,6 @@
"semi": false, "semi": false,
"singleQuote": true "singleQuote": true
}, },
"type": "module" "type": "module",
"web-types": "./web-types.json"
} }

28
web-types.json Normal file
View File

@@ -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
}
}
]
}
}
}