Commit 595867a
committed
feat(oxlint): Generate markdownDescription fields for oxlint JSON schema. (#15959)
This allows VS Code and other editors to display better descriptions in hover tooltips when editing oxlintrc.json files.
Before:
<img width="676" height="179" alt="Screenshot 2025-11-21 at 9 24 52 PM" src="https://github.com/user-attachments/assets/775cbf62-19cb-44f4-ad48-2a9e3b867900" />
After:
<img width="926" height="164" alt="Screenshot 2025-11-21 at 9 24 41 PM" src="https://github.com/user-attachments/assets/d2e668b2-88a9-4765-9f18-122185fdeb8e" />
This can probably be made more efficient, as I wrote it using GitHub Copilot + Claude Sonnet 4.5. But it's not really ever used outside developers regenerating the schema occasionally, so 🤷. Based heavily on https://github.com/moonrepo/schematic/blob/d3a9422cead2802b940c96f8ab8b188c86ab281f/crates/schematic/src/schema/renderers/json_schema.rs#L84, with permission (via discord).
Part of #15247.1 parent 0b18005 commit 595867a
File tree
3 files changed
+199
-82
lines changed- crates/oxc_linter/src
- config
- snapshots
- npm/oxlint
3 files changed
+199
-82
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| 207 | + | |
207 | 208 | | |
208 | 209 | | |
209 | 210 | | |
| |||
212 | 213 | | |
213 | 214 | | |
214 | 215 | | |
215 | | - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
216 | 253 | | |
217 | 254 | | |
218 | 255 | | |
| |||
0 commit comments