@hia-doc/profiles 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +36 -0
- package/dist/catalog.json +48 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +45 -0
- package/dist/index.js.map +1 -0
- package/dist/profiles/cssdoc.profile.json +247 -0
- package/dist/profiles/doc-source-map.profile.json +126 -0
- package/dist/profiles/htmdoc.profile.json +202 -0
- package/dist/profiles/jsdoc.profile.json +259 -0
- package/dist/profiles/pug-htmdoc-bridge.profile.json +98 -0
- package/dist/profiles/sass-cssdoc-bridge.profile.json +107 -0
- package/dist/profiles/ts-jsdoc-bridge.profile.json +104 -0
- package/package.json +48 -0
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "0.1.0-draft",
|
|
3
|
+
"profileId": "htmdoc",
|
|
4
|
+
"profileVersion": "0.1.0-draft",
|
|
5
|
+
"displayName": "HTMDoc",
|
|
6
|
+
"layer": "stable",
|
|
7
|
+
"extends": [],
|
|
8
|
+
"contracts": [
|
|
9
|
+
{
|
|
10
|
+
"name": "hia-htmdoc-extraction",
|
|
11
|
+
"version": "0.1.0-draft",
|
|
12
|
+
"role": "produces"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"targets": ["html-source", "html-fragment", "htmdoc-extraction", "hia-core-document"],
|
|
16
|
+
"tags": [
|
|
17
|
+
{
|
|
18
|
+
"name": "component",
|
|
19
|
+
"status": "stable",
|
|
20
|
+
"scope": ["block"],
|
|
21
|
+
"targets": ["html-element", "html-fragment"],
|
|
22
|
+
"repeatable": false,
|
|
23
|
+
"valueGrammar": "identifier [summary]",
|
|
24
|
+
"mapsTo": { "symbolKind": "html-component" }
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "element",
|
|
28
|
+
"status": "stable",
|
|
29
|
+
"scope": ["block"],
|
|
30
|
+
"targets": ["html-element"],
|
|
31
|
+
"repeatable": false,
|
|
32
|
+
"valueGrammar": "tag-name [summary]",
|
|
33
|
+
"mapsTo": { "symbolKind": "html-element" }
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "template",
|
|
37
|
+
"status": "stable",
|
|
38
|
+
"scope": ["block"],
|
|
39
|
+
"targets": ["html-template", "html-fragment"],
|
|
40
|
+
"repeatable": false,
|
|
41
|
+
"valueGrammar": "name [summary]",
|
|
42
|
+
"mapsTo": { "symbolKind": "html-template" }
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "attr",
|
|
46
|
+
"status": "stable",
|
|
47
|
+
"scope": ["block"],
|
|
48
|
+
"targets": ["html-element", "html-component"],
|
|
49
|
+
"repeatable": true,
|
|
50
|
+
"valueGrammar": "attribute-name [description]",
|
|
51
|
+
"mapsTo": { "symbolKind": "html-attribute" }
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "attribute",
|
|
55
|
+
"status": "alias",
|
|
56
|
+
"aliasFor": "attr",
|
|
57
|
+
"scope": ["block"],
|
|
58
|
+
"targets": ["html-element", "html-component"],
|
|
59
|
+
"repeatable": true,
|
|
60
|
+
"valueGrammar": "attribute-name [description]"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "slot",
|
|
64
|
+
"status": "stable",
|
|
65
|
+
"scope": ["block"],
|
|
66
|
+
"targets": ["html-component", "html-template"],
|
|
67
|
+
"repeatable": true,
|
|
68
|
+
"valueGrammar": "slot-name [description]",
|
|
69
|
+
"mapsTo": { "symbolKind": "html-slot" }
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "stylehook",
|
|
73
|
+
"status": "stable",
|
|
74
|
+
"scope": ["block"],
|
|
75
|
+
"targets": ["html-component", "html-element"],
|
|
76
|
+
"repeatable": true,
|
|
77
|
+
"valueGrammar": "selector-or-css-hook [description]",
|
|
78
|
+
"mapsTo": { "symbolKind": "html-style-hook" }
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "style-hook",
|
|
82
|
+
"status": "alias",
|
|
83
|
+
"aliasFor": "stylehook",
|
|
84
|
+
"scope": ["block"],
|
|
85
|
+
"targets": ["html-component", "html-element"],
|
|
86
|
+
"repeatable": true,
|
|
87
|
+
"valueGrammar": "selector-or-css-hook [description]"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "a11y",
|
|
91
|
+
"status": "stable",
|
|
92
|
+
"scope": ["block"],
|
|
93
|
+
"targets": ["html-component", "html-element"],
|
|
94
|
+
"repeatable": true,
|
|
95
|
+
"valueGrammar": "accessibility-note",
|
|
96
|
+
"mapsTo": { "symbolKind": "html-a11y-note" }
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "accessibility",
|
|
100
|
+
"status": "alias",
|
|
101
|
+
"aliasFor": "a11y",
|
|
102
|
+
"scope": ["block"],
|
|
103
|
+
"targets": ["html-component", "html-element"],
|
|
104
|
+
"repeatable": true,
|
|
105
|
+
"valueGrammar": "accessibility-note"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"name": "description",
|
|
109
|
+
"status": "stable",
|
|
110
|
+
"scope": ["block"],
|
|
111
|
+
"targets": ["html-symbol", "html-fragment"],
|
|
112
|
+
"repeatable": false,
|
|
113
|
+
"valueGrammar": "markdown-inline",
|
|
114
|
+
"mapsTo": { "field": "summary" }
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "example",
|
|
118
|
+
"status": "stable",
|
|
119
|
+
"scope": ["block"],
|
|
120
|
+
"targets": ["html-symbol"],
|
|
121
|
+
"repeatable": true,
|
|
122
|
+
"valueGrammar": "example-body",
|
|
123
|
+
"mapsTo": { "symbolKind": "html-example" }
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "lang",
|
|
127
|
+
"status": "stable",
|
|
128
|
+
"scope": ["inline", "block"],
|
|
129
|
+
"targets": ["text"],
|
|
130
|
+
"repeatable": true,
|
|
131
|
+
"valueGrammar": "locale text",
|
|
132
|
+
"mapsTo": { "field": "localizedText" }
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"rules": [
|
|
136
|
+
{
|
|
137
|
+
"ruleId": "htmdoc/no-unknown-tag",
|
|
138
|
+
"category": "semantic",
|
|
139
|
+
"defaultSeverity": "warning",
|
|
140
|
+
"optionsSchema": { "type": "object", "additionalProperties": false },
|
|
141
|
+
"appliesTo": ["annotation"],
|
|
142
|
+
"messages": { "default": "Unknown HTMDoc annotation tag." },
|
|
143
|
+
"fixable": false,
|
|
144
|
+
"hasSuggestions": true
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"ruleId": "htmdoc/component-name-required",
|
|
148
|
+
"category": "semantic",
|
|
149
|
+
"defaultSeverity": "error",
|
|
150
|
+
"optionsSchema": { "type": "object", "additionalProperties": false },
|
|
151
|
+
"appliesTo": ["tag:component"],
|
|
152
|
+
"messages": { "default": "@component requires a stable component name." },
|
|
153
|
+
"fixable": false,
|
|
154
|
+
"hasSuggestions": true
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"mappings": [
|
|
158
|
+
{
|
|
159
|
+
"from": "tag:component",
|
|
160
|
+
"to": "symbolKind:html-component",
|
|
161
|
+
"conditions": ["attached-html-element-or-fragment"],
|
|
162
|
+
"confidence": "high",
|
|
163
|
+
"sourcePolicy": "preserve-source-range",
|
|
164
|
+
"metadataPolicy": "preserve-known-fields",
|
|
165
|
+
"diagnostics": ["HTMDOC_COMPONENT_NAME_REQUIRED"]
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"from": "tag:stylehook",
|
|
169
|
+
"to": "symbolKind:html-style-hook",
|
|
170
|
+
"conditions": ["component-or-element-context"],
|
|
171
|
+
"confidence": "medium",
|
|
172
|
+
"sourcePolicy": "preserve-source-range",
|
|
173
|
+
"metadataPolicy": "preserve-known-fields",
|
|
174
|
+
"diagnostics": []
|
|
175
|
+
}
|
|
176
|
+
],
|
|
177
|
+
"diagnostics": [
|
|
178
|
+
{
|
|
179
|
+
"code": "HTMDOC_UNKNOWN_TAG",
|
|
180
|
+
"severity": "warning",
|
|
181
|
+
"messageKey": "htmdoc.unknownTag",
|
|
182
|
+
"defaultMessage": "Unknown HTMDoc annotation tag.",
|
|
183
|
+
"target": "annotation",
|
|
184
|
+
"suggestions": ["Use a stable HTMDoc tag or declare an extension profile."]
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"code": "HTMDOC_COMPONENT_NAME_REQUIRED",
|
|
188
|
+
"severity": "error",
|
|
189
|
+
"messageKey": "htmdoc.componentNameRequired",
|
|
190
|
+
"defaultMessage": "@component requires a stable component name.",
|
|
191
|
+
"target": "annotation",
|
|
192
|
+
"suggestions": ["Provide an explicit @component name."]
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
"capabilities": {
|
|
196
|
+
"completion": { "tags": true },
|
|
197
|
+
"hover": { "tags": true, "symbolKinds": true },
|
|
198
|
+
"diagnostics": ["HTMDOC_UNKNOWN_TAG", "HTMDOC_COMPONENT_NAME_REQUIRED"],
|
|
199
|
+
"folding": { "commentBlocks": true },
|
|
200
|
+
"renderer": { "views": ["html", "all"] }
|
|
201
|
+
}
|
|
202
|
+
}
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "0.1.0-draft",
|
|
3
|
+
"profileId": "jsdoc",
|
|
4
|
+
"profileVersion": "0.1.0-draft",
|
|
5
|
+
"displayName": "JSDoc",
|
|
6
|
+
"layer": "stable",
|
|
7
|
+
"extends": [],
|
|
8
|
+
"contracts": [
|
|
9
|
+
{
|
|
10
|
+
"name": "jsdoc-integration",
|
|
11
|
+
"version": "0.1.0",
|
|
12
|
+
"role": "consumes"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "hia-core-document",
|
|
16
|
+
"version": "0.2.0",
|
|
17
|
+
"role": "produces"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"targets": ["javascript-source", "jsdoc-doclet", "jsdoc-integration", "hia-core-document"],
|
|
21
|
+
"tags": [
|
|
22
|
+
{
|
|
23
|
+
"name": "module",
|
|
24
|
+
"status": "stable",
|
|
25
|
+
"scope": ["block"],
|
|
26
|
+
"targets": ["jsdoc-doclet"],
|
|
27
|
+
"repeatable": false,
|
|
28
|
+
"valueGrammar": "module-name",
|
|
29
|
+
"mapsTo": { "symbolKind": "module" }
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "class",
|
|
33
|
+
"status": "stable",
|
|
34
|
+
"scope": ["block"],
|
|
35
|
+
"targets": ["jsdoc-doclet"],
|
|
36
|
+
"repeatable": false,
|
|
37
|
+
"valueGrammar": "class-name",
|
|
38
|
+
"mapsTo": { "symbolKind": "class" }
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "function",
|
|
42
|
+
"status": "stable",
|
|
43
|
+
"scope": ["block"],
|
|
44
|
+
"targets": ["jsdoc-doclet"],
|
|
45
|
+
"repeatable": false,
|
|
46
|
+
"valueGrammar": "function-name",
|
|
47
|
+
"mapsTo": { "symbolKind": "function" }
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "param",
|
|
51
|
+
"status": "stable",
|
|
52
|
+
"scope": ["block"],
|
|
53
|
+
"targets": ["jsdoc-doclet"],
|
|
54
|
+
"repeatable": true,
|
|
55
|
+
"valueGrammar": "{type} name [description]",
|
|
56
|
+
"mapsTo": { "field": "params" }
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "returns",
|
|
60
|
+
"status": "stable",
|
|
61
|
+
"scope": ["block"],
|
|
62
|
+
"targets": ["jsdoc-doclet"],
|
|
63
|
+
"repeatable": true,
|
|
64
|
+
"valueGrammar": "{type} [description]",
|
|
65
|
+
"mapsTo": { "field": "returns" }
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "typedef",
|
|
69
|
+
"status": "stable",
|
|
70
|
+
"scope": ["block"],
|
|
71
|
+
"targets": ["jsdoc-doclet"],
|
|
72
|
+
"repeatable": false,
|
|
73
|
+
"valueGrammar": "{type} name",
|
|
74
|
+
"mapsTo": { "symbolKind": "typedef" }
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "property",
|
|
78
|
+
"status": "stable",
|
|
79
|
+
"scope": ["block"],
|
|
80
|
+
"targets": ["jsdoc-doclet"],
|
|
81
|
+
"repeatable": true,
|
|
82
|
+
"valueGrammar": "{type} name [description]",
|
|
83
|
+
"mapsTo": { "field": "properties" }
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "example",
|
|
87
|
+
"status": "stable",
|
|
88
|
+
"scope": ["block"],
|
|
89
|
+
"targets": ["jsdoc-doclet"],
|
|
90
|
+
"repeatable": true,
|
|
91
|
+
"valueGrammar": "example-body",
|
|
92
|
+
"mapsTo": { "field": "examples" }
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "deprecated",
|
|
96
|
+
"status": "stable",
|
|
97
|
+
"scope": ["block"],
|
|
98
|
+
"targets": ["jsdoc-doclet"],
|
|
99
|
+
"repeatable": false,
|
|
100
|
+
"valueGrammar": "[message]",
|
|
101
|
+
"mapsTo": { "field": "deprecated" }
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "lang",
|
|
105
|
+
"status": "stable",
|
|
106
|
+
"scope": ["block", "inline"],
|
|
107
|
+
"targets": ["jsdoc-doclet", "text"],
|
|
108
|
+
"repeatable": true,
|
|
109
|
+
"valueGrammar": "locale text",
|
|
110
|
+
"mapsTo": { "field": "localizedText" },
|
|
111
|
+
"metadata": { "origin": "jsdoc-plugin-hia-sys" }
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "hiaLocale",
|
|
115
|
+
"status": "stable",
|
|
116
|
+
"scope": ["block"],
|
|
117
|
+
"targets": ["jsdoc-doclet"],
|
|
118
|
+
"repeatable": false,
|
|
119
|
+
"valueGrammar": "locale",
|
|
120
|
+
"mapsTo": { "field": "resource.locale" },
|
|
121
|
+
"metadata": { "origin": "jsdoc-plugin-hia-sys", "namespace": "hia" }
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"name": "hiaKey",
|
|
125
|
+
"status": "stable",
|
|
126
|
+
"scope": ["block"],
|
|
127
|
+
"targets": ["jsdoc-doclet"],
|
|
128
|
+
"repeatable": false,
|
|
129
|
+
"valueGrammar": "resource-key",
|
|
130
|
+
"mapsTo": { "field": "resource.key" },
|
|
131
|
+
"metadata": { "origin": "jsdoc-plugin-hia-sys", "namespace": "hia" }
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "hiaPath",
|
|
135
|
+
"status": "stable",
|
|
136
|
+
"scope": ["block"],
|
|
137
|
+
"targets": ["jsdoc-doclet"],
|
|
138
|
+
"repeatable": false,
|
|
139
|
+
"valueGrammar": "resource-path",
|
|
140
|
+
"mapsTo": { "field": "resource.path" },
|
|
141
|
+
"metadata": { "origin": "jsdoc-plugin-hia-sys", "namespace": "hia" }
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "hiaText",
|
|
145
|
+
"status": "stable",
|
|
146
|
+
"scope": ["block"],
|
|
147
|
+
"targets": ["jsdoc-doclet", "text"],
|
|
148
|
+
"repeatable": true,
|
|
149
|
+
"valueGrammar": "locale text",
|
|
150
|
+
"mapsTo": { "field": "localizedText.blocks" },
|
|
151
|
+
"metadata": { "origin": "jsdoc-plugin-hia-sys", "namespace": "hia" }
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"name": "hiaBlock",
|
|
155
|
+
"status": "stable",
|
|
156
|
+
"scope": ["block"],
|
|
157
|
+
"targets": ["jsdoc-doclet", "text"],
|
|
158
|
+
"repeatable": true,
|
|
159
|
+
"valueGrammar": "locale fenced-block",
|
|
160
|
+
"mapsTo": { "field": "localizedText.blocks" },
|
|
161
|
+
"metadata": { "origin": "jsdoc-plugin-hia-sys", "namespace": "hia" }
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"name": "codeblock",
|
|
165
|
+
"status": "stable",
|
|
166
|
+
"scope": ["block"],
|
|
167
|
+
"targets": ["jsdoc-doclet"],
|
|
168
|
+
"repeatable": true,
|
|
169
|
+
"valueGrammar": "block-id [language]",
|
|
170
|
+
"mapsTo": { "field": "source.fragments" },
|
|
171
|
+
"metadata": { "origin": "jsdoc-plugin-hia-sys" }
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"name": "codeblockend",
|
|
175
|
+
"status": "stable",
|
|
176
|
+
"scope": ["block"],
|
|
177
|
+
"targets": ["jsdoc-doclet"],
|
|
178
|
+
"repeatable": true,
|
|
179
|
+
"valueGrammar": "block-id",
|
|
180
|
+
"mapsTo": { "field": "source.fragments" },
|
|
181
|
+
"metadata": { "origin": "jsdoc-plugin-hia-sys" }
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "coderef",
|
|
185
|
+
"status": "stable",
|
|
186
|
+
"scope": ["block"],
|
|
187
|
+
"targets": ["jsdoc-doclet"],
|
|
188
|
+
"repeatable": true,
|
|
189
|
+
"valueGrammar": "block-id",
|
|
190
|
+
"mapsTo": { "field": "source.references" },
|
|
191
|
+
"metadata": { "origin": "jsdoc-plugin-hia-sys" }
|
|
192
|
+
}
|
|
193
|
+
],
|
|
194
|
+
"rules": [
|
|
195
|
+
{
|
|
196
|
+
"ruleId": "jsdoc/hia-resource-key-valid",
|
|
197
|
+
"category": "resource",
|
|
198
|
+
"defaultSeverity": "warning",
|
|
199
|
+
"optionsSchema": { "type": "object", "additionalProperties": false },
|
|
200
|
+
"appliesTo": ["tag:hiaKey", "tag:hiaPath"],
|
|
201
|
+
"messages": { "default": "HIA JSDoc resource key or path is not valid." },
|
|
202
|
+
"fixable": false,
|
|
203
|
+
"hasSuggestions": true
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"ruleId": "jsdoc/codeblock-balanced",
|
|
207
|
+
"category": "source",
|
|
208
|
+
"defaultSeverity": "error",
|
|
209
|
+
"optionsSchema": { "type": "object", "additionalProperties": false },
|
|
210
|
+
"appliesTo": ["tag:codeblock", "tag:codeblockend"],
|
|
211
|
+
"messages": { "default": "JSDoc code block tags must be balanced." },
|
|
212
|
+
"fixable": false,
|
|
213
|
+
"hasSuggestions": true
|
|
214
|
+
}
|
|
215
|
+
],
|
|
216
|
+
"mappings": [
|
|
217
|
+
{
|
|
218
|
+
"from": "jsdoc-doclet",
|
|
219
|
+
"to": "hia-core-symbol",
|
|
220
|
+
"conditions": ["doclet-kind-present"],
|
|
221
|
+
"confidence": "high",
|
|
222
|
+
"sourcePolicy": "preserve-jsdoc-source",
|
|
223
|
+
"metadataPolicy": "strip-private-paths",
|
|
224
|
+
"diagnostics": []
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"from": "tag:coderef",
|
|
228
|
+
"to": "sourceReference",
|
|
229
|
+
"conditions": ["codeblock-id-resolved"],
|
|
230
|
+
"confidence": "high",
|
|
231
|
+
"sourcePolicy": "preserve-source-fragment",
|
|
232
|
+
"metadataPolicy": "preserve-known-fields",
|
|
233
|
+
"diagnostics": ["JSDOC_CODEBLOCK_REF_UNRESOLVED"]
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
"diagnostics": [
|
|
237
|
+
{
|
|
238
|
+
"code": "JSDOC_HIA_RESOURCE_KEY_INVALID",
|
|
239
|
+
"severity": "warning",
|
|
240
|
+
"messageKey": "jsdoc.hiaResourceKeyInvalid",
|
|
241
|
+
"defaultMessage": "HIA JSDoc resource key or path is not valid.",
|
|
242
|
+
"target": "annotation"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"code": "JSDOC_CODEBLOCK_REF_UNRESOLVED",
|
|
246
|
+
"severity": "error",
|
|
247
|
+
"messageKey": "jsdoc.codeblockRefUnresolved",
|
|
248
|
+
"defaultMessage": "JSDoc code reference points to an unknown code block.",
|
|
249
|
+
"target": "source-reference"
|
|
250
|
+
}
|
|
251
|
+
],
|
|
252
|
+
"capabilities": {
|
|
253
|
+
"completion": { "tags": true, "resources": true },
|
|
254
|
+
"hover": { "tags": true, "symbolKinds": true },
|
|
255
|
+
"diagnostics": ["JSDOC_HIA_RESOURCE_KEY_INVALID", "JSDOC_CODEBLOCK_REF_UNRESOLVED"],
|
|
256
|
+
"folding": { "commentBlocks": true },
|
|
257
|
+
"renderer": { "views": ["js", "all"] }
|
|
258
|
+
}
|
|
259
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "0.1.0-draft",
|
|
3
|
+
"profileId": "pug-htmdoc-bridge",
|
|
4
|
+
"profileVersion": "0.1.0-draft",
|
|
5
|
+
"displayName": "Pug to HTMDoc Bridge",
|
|
6
|
+
"layer": "bridge",
|
|
7
|
+
"extends": ["htmdoc", "doc-source-map"],
|
|
8
|
+
"contracts": [
|
|
9
|
+
{
|
|
10
|
+
"name": "hia-htmdoc-extraction",
|
|
11
|
+
"version": "0.1.0-draft",
|
|
12
|
+
"role": "produces"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "doc-source-map",
|
|
16
|
+
"version": "0.1.0-draft",
|
|
17
|
+
"role": "produces"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"targets": ["pug-source", "generated-html", "htmdoc-extraction", "doc-source-map-manifest"],
|
|
21
|
+
"tags": [
|
|
22
|
+
{
|
|
23
|
+
"name": "mixin",
|
|
24
|
+
"status": "experimental",
|
|
25
|
+
"scope": ["block"],
|
|
26
|
+
"targets": ["pug-mixin", "generated-html"],
|
|
27
|
+
"repeatable": false,
|
|
28
|
+
"valueGrammar": "mixin-name [summary]",
|
|
29
|
+
"mapsTo": { "symbolKind": "html-template" },
|
|
30
|
+
"metadata": { "bridgeOnly": true }
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"rules": [
|
|
34
|
+
{
|
|
35
|
+
"ruleId": "pug-htmdoc/no-heuristic-high-confidence",
|
|
36
|
+
"category": "source-map",
|
|
37
|
+
"defaultSeverity": "error",
|
|
38
|
+
"optionsSchema": { "type": "object", "additionalProperties": false },
|
|
39
|
+
"appliesTo": ["doc-source-map-entry"],
|
|
40
|
+
"messages": { "default": "Heuristic Pug to HTML linkage must not be marked high confidence." },
|
|
41
|
+
"fixable": false,
|
|
42
|
+
"hasSuggestions": true
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"ruleId": "pug-htmdoc/include-block-deferred",
|
|
46
|
+
"category": "bridge",
|
|
47
|
+
"defaultSeverity": "info",
|
|
48
|
+
"optionsSchema": { "type": "object", "additionalProperties": false },
|
|
49
|
+
"appliesTo": ["pug-include", "pug-extends", "pug-block"],
|
|
50
|
+
"messages": { "default": "Pug include/extends/block full linkage is deferred beyond P1." },
|
|
51
|
+
"fixable": false,
|
|
52
|
+
"hasSuggestions": false
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"mappings": [
|
|
56
|
+
{
|
|
57
|
+
"from": "tag:component",
|
|
58
|
+
"to": "symbolKind:html-component",
|
|
59
|
+
"conditions": ["pug-comment-attached-to-node", "generated-html-node-resolved"],
|
|
60
|
+
"confidence": "high",
|
|
61
|
+
"sourcePolicy": "preserve-pug-parser-range",
|
|
62
|
+
"metadataPolicy": "preserve-generated-html-selector",
|
|
63
|
+
"diagnostics": []
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"from": "pug-mixin-call",
|
|
67
|
+
"to": "html-template-or-component-reference",
|
|
68
|
+
"conditions": ["mixin-name-resolved"],
|
|
69
|
+
"confidence": "medium",
|
|
70
|
+
"sourcePolicy": "preserve-pug-parser-range",
|
|
71
|
+
"metadataPolicy": "preserve-known-fields",
|
|
72
|
+
"diagnostics": ["PUG_HTMDOC_MIXIN_LINKAGE_PARTIAL"]
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"diagnostics": [
|
|
76
|
+
{
|
|
77
|
+
"code": "PUG_HTMDOC_HEURISTIC_HIGH_CONFIDENCE",
|
|
78
|
+
"severity": "error",
|
|
79
|
+
"messageKey": "pugHtmdoc.heuristicHighConfidence",
|
|
80
|
+
"defaultMessage": "Heuristic Pug to HTML linkage must not be marked high confidence.",
|
|
81
|
+
"target": "doc-source-map-entry"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"code": "PUG_HTMDOC_MIXIN_LINKAGE_PARTIAL",
|
|
85
|
+
"severity": "warning",
|
|
86
|
+
"messageKey": "pugHtmdoc.mixinLinkagePartial",
|
|
87
|
+
"defaultMessage": "Pug mixin linkage is partial in P1.",
|
|
88
|
+
"target": "bridge"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"capabilities": {
|
|
92
|
+
"completion": { "tags": true },
|
|
93
|
+
"hover": { "tags": true, "entries": true },
|
|
94
|
+
"diagnostics": ["PUG_HTMDOC_HEURISTIC_HIGH_CONFIDENCE", "PUG_HTMDOC_MIXIN_LINKAGE_PARTIAL"],
|
|
95
|
+
"sourceMap": { "index": true, "locations": true },
|
|
96
|
+
"renderer": { "views": ["html", "all"] }
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "0.1.0-draft",
|
|
3
|
+
"profileId": "sass-cssdoc-bridge",
|
|
4
|
+
"profileVersion": "0.1.0-draft",
|
|
5
|
+
"displayName": "Sass to CSSDoc Bridge",
|
|
6
|
+
"layer": "bridge",
|
|
7
|
+
"extends": ["cssdoc", "doc-source-map"],
|
|
8
|
+
"contracts": [
|
|
9
|
+
{
|
|
10
|
+
"name": "hia-cssdoc-extraction",
|
|
11
|
+
"version": "0.1.0-draft",
|
|
12
|
+
"role": "produces"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "doc-source-map",
|
|
16
|
+
"version": "0.1.0-draft",
|
|
17
|
+
"role": "produces"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"targets": ["sass-source", "scss-source", "generated-css", "cssdoc-extraction", "doc-source-map-manifest"],
|
|
21
|
+
"tags": [
|
|
22
|
+
{
|
|
23
|
+
"name": "variable",
|
|
24
|
+
"status": "experimental",
|
|
25
|
+
"scope": ["block"],
|
|
26
|
+
"targets": ["sass-variable", "scss-variable"],
|
|
27
|
+
"repeatable": true,
|
|
28
|
+
"valueGrammar": "variable-name [description]",
|
|
29
|
+
"mapsTo": { "metadata": "sass-variable" },
|
|
30
|
+
"metadata": { "bridgeOnly": true }
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"rules": [
|
|
34
|
+
{
|
|
35
|
+
"ruleId": "sass-cssdoc/generated-css-linkage",
|
|
36
|
+
"category": "source-map",
|
|
37
|
+
"defaultSeverity": "warning",
|
|
38
|
+
"optionsSchema": { "type": "object", "additionalProperties": false },
|
|
39
|
+
"appliesTo": ["doc-source-map-entry", "ordinary-source-map"],
|
|
40
|
+
"messages": { "default": "Sass to CSSDoc bridge should preserve generated CSS linkage." },
|
|
41
|
+
"fixable": false,
|
|
42
|
+
"hasSuggestions": true
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"ruleId": "sass-cssdoc/custom-property-alias",
|
|
46
|
+
"category": "compat",
|
|
47
|
+
"defaultSeverity": "info",
|
|
48
|
+
"optionsSchema": { "type": "object", "additionalProperties": false },
|
|
49
|
+
"appliesTo": ["tag:custom-property", "tag:cssprop"],
|
|
50
|
+
"messages": { "default": "@custom-property is an alias of CSSDoc @cssprop." },
|
|
51
|
+
"fixable": false,
|
|
52
|
+
"hasSuggestions": false
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"mappings": [
|
|
56
|
+
{
|
|
57
|
+
"from": "tag:component",
|
|
58
|
+
"to": "symbolKind:css-component-style",
|
|
59
|
+
"conditions": ["sass-comment-attached", "generated-css-selector-resolved"],
|
|
60
|
+
"confidence": "high",
|
|
61
|
+
"sourcePolicy": "prefer-sass-source-range",
|
|
62
|
+
"metadataPolicy": "preserve-generated-css-selector",
|
|
63
|
+
"diagnostics": []
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"from": "tag:custom-property",
|
|
67
|
+
"to": "symbolKind:css-custom-property",
|
|
68
|
+
"conditions": ["custom-property-name-present"],
|
|
69
|
+
"confidence": "high",
|
|
70
|
+
"sourcePolicy": "prefer-sass-source-range",
|
|
71
|
+
"metadataPolicy": "preserve-known-fields",
|
|
72
|
+
"diagnostics": []
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"from": "sass-variable",
|
|
76
|
+
"to": "design-token-or-css-custom-property-link",
|
|
77
|
+
"conditions": ["variable-used-in-css-custom-property"],
|
|
78
|
+
"confidence": "medium",
|
|
79
|
+
"sourcePolicy": "preserve-sass-source-range",
|
|
80
|
+
"metadataPolicy": "preserve-variable-value-policy",
|
|
81
|
+
"diagnostics": ["SASS_CSSDOC_VARIABLE_TOKEN_LINK_PARTIAL"]
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"diagnostics": [
|
|
85
|
+
{
|
|
86
|
+
"code": "SASS_CSSDOC_GENERATED_LINKAGE_MISSING",
|
|
87
|
+
"severity": "warning",
|
|
88
|
+
"messageKey": "sassCssdoc.generatedLinkageMissing",
|
|
89
|
+
"defaultMessage": "Generated CSS linkage is missing for a Sass documentation entry.",
|
|
90
|
+
"target": "doc-source-map-entry"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"code": "SASS_CSSDOC_VARIABLE_TOKEN_LINK_PARTIAL",
|
|
94
|
+
"severity": "info",
|
|
95
|
+
"messageKey": "sassCssdoc.variableTokenLinkPartial",
|
|
96
|
+
"defaultMessage": "Sass variable to design token linkage is partial.",
|
|
97
|
+
"target": "bridge"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"capabilities": {
|
|
101
|
+
"completion": { "tags": true },
|
|
102
|
+
"hover": { "tags": true, "entries": true },
|
|
103
|
+
"diagnostics": ["SASS_CSSDOC_GENERATED_LINKAGE_MISSING", "SASS_CSSDOC_VARIABLE_TOKEN_LINK_PARTIAL"],
|
|
104
|
+
"sourceMap": { "index": true, "locations": true },
|
|
105
|
+
"renderer": { "views": ["css", "all"] }
|
|
106
|
+
}
|
|
107
|
+
}
|