rokucommunity / bslint

A linter for BrightScript and BrighterScript.
MIT License
27 stars 14 forks source link

[bslint] Create a bslint.json jsonschema #104

Open bartvandenende-wm opened 2 months ago

bartvandenende-wm commented 2 months ago

Summary

Create a bslint.json jsonschema

Details

it would be great if bslint.json would have a json schema to improve IDE support (ex. on inline-docs, autocompletion and warnings), for example

{
   "$schema": "https://{som-url}/bslint.schema.json",
  "rules": {},
  "globals": [],
  "ignores": []
}
TwitchBronBron commented 2 months ago

Yeah, this would be great! Pretty sure schemas can be referenced locally too, so it could be bundled with bslint and referenced like:

{
   "$schema": "./node_modules/@rokucommunity/bslint/schema.json",
  "rules": {},
  "globals": [],
  "ignores": []
}

But I'd also be open to embedding it into the vscode extension so all roku devs get it automatically.

Any chance you'd be interested in working on this one?