UNPKG

3.86 kBJSONView Raw
1{
2 "title": "TSDoc Configuration",
3 "description": "Describes the TSDoc configuration for a TypeScript project",
4 "type": "object",
5 "properties": {
6 "$schema": {
7 "description": "Part of the JSON Schema standard, this optional keyword declares the URL of the schema that the file conforms to. Editors may download the schema and use it to perform syntax highlighting.",
8 "type": "string"
9 },
10
11 "extends": {
12 "description": "Optionally specifies one or more JSON config files that will be combined with this file. This provides a way for standard settings to be shared across multiple projects. Important: The \"extends\" paths are resolved using NodeJS module resolution, so a path to a local file MUST be prefixed with \"./\".",
13 "type": "array",
14 "items": {
15 "type": "string"
16 }
17 },
18
19 "noStandardTags": {
20 "description": "By default, the config file loader will predefine all of the standardized TSDoc tags. To disable this and start with a completely empty configuration, set \"noStandardTags\"=true.",
21 "type": "boolean"
22 },
23
24 "tagDefinitions": {
25 "description": "Additional tags to support when parsing documentation comments with TSDoc.",
26 "type": "array",
27 "items": {
28 "$ref": "#/definitions/tsdocTagDefinition"
29 }
30 },
31
32 "supportedHtmlElements": {
33 "description": "The HTML element names that are supported in this configuration. Used in conjunction with the \"reportUnsupportedHtmlElements\" setting.",
34 "type": "array",
35 "items": {
36 "type": "string",
37 "pattern": "^[a-zA-Z0-9-]+$"
38 }
39 },
40
41 "reportUnsupportedHtmlElements": {
42 "description": "Whether an error should be reported when an unsupported HTML element is encountered in a doc comment. Defaults to \"true\" if the \"supportedHtmlElements\" field is present in this file, \"false\" if not.",
43 "type": "boolean"
44 },
45
46 "supportForTags": {
47 "description": "A collection of key/value pairs. The key is a TSDoc tag name (e.g. \"@myTag\") that must be defined in this configuration. The value is a boolean indicating whether the tag is supported. The TSDoc parser may report warnings when unsupported tags are encountered. If \"supportForTags\" is specified for at least one tag, then the \"reportUnsupportedTags\" validation check is enabled by default.",
48 "type": "object",
49 "patternProperties": {
50 "@[a-zA-Z][a-zA-Z0-9]*$": {
51 "type": "boolean"
52 }
53 },
54 "additionalItems": false
55 }
56 },
57 "required": ["$schema"],
58 "additionalProperties": false,
59
60 "definitions": {
61 "tsdocTagDefinition": {
62 "description": "Configuration for a custom supported TSDoc tag.",
63 "type": "object",
64 "properties": {
65 "tagName": {
66 "description": "Name of the custom tag. TSDoc tag names start with an at-sign (@) followed by ASCII letters using camelCase capitalization.",
67 "type": "string"
68 },
69 "syntaxKind": {
70 "description": "Syntax kind of the custom tag. \"inline\" means that this tag can appear inside other documentation sections (example: {@link}). \"block\" means that this tag starts a new documentation section (example: @remarks). \"modifier\" means that this tag's presence indicates an aspect of the associated API item (example: @internal).",
71 "type": "string",
72 "enum": ["inline", "block", "modifier"]
73 },
74 "allowMultiple": {
75 "description": "If true, then this tag may appear multiple times in a doc comment. By default, a tag may only appear once.",
76 "type": "boolean"
77 }
78 },
79 "required": ["tagName", "syntaxKind"],
80 "additionalProperties": false
81 }
82 }
83}