Skip to content

Commit

Permalink
Add VSCode settings for HuJSON
Browse files Browse the repository at this point in the history
HuJSON/"Human JSON" is JSON With (trailing) Commas and Comments (JWCC).
HuJSON is used for Tailscale Access Control Lists (ACLs).

https://github.com/tailscale/hujson
https://nigeltao.github.io/blog/2021/json-with-commas-comments.html
https://tailscale.com/kb/1337/acl-syntax
  • Loading branch information
br3ndonland committed Nov 16, 2024
1 parent cf01d76 commit e04e183
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion vscode/User/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
},
"files.associations": {
"**/.env*": "dotenv",
"**/env*": "dotenv"
"**/env*": "dotenv",
"**/*.hujson": "jsonc"
},
"files.autoSave": "onWindowChange",
"files.exclude": {
Expand Down Expand Up @@ -155,6 +156,14 @@
"gopls": { "ui.semanticTokens": true },
"grunt.autoDetect": "off",
"gulp.autoDetect": "off",
"json.schemas": [
{
"fileMatch": ["*.hujson"],
"schema": {
"allowTrailingCommas": true
}
}
],
"[astro][css][html][javascript][json][jsonc][markdown][mdx][typescript][vue][yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
Expand Down

0 comments on commit e04e183

Please sign in to comment.