Skip to content

Commit

Permalink
Add .code-workspace to JSON with Comments (#6502)
Browse files Browse the repository at this point in the history
  • Loading branch information
wxh06 authored Sep 7, 2023
1 parent 108fe81 commit ec4435f
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/linguist/languages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3176,6 +3176,7 @@ JSON with Comments:
extensions:
- ".jsonc"
- ".code-snippets"
- ".code-workspace"
- ".sublime-build"
- ".sublime-commands"
- ".sublime-completions"
Expand Down
39 changes: 39 additions & 0 deletions samples/JSON with Comments/plyr.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"folders": [
{
"path": "."
}
],
"settings": {
"search.exclude": {
"**/node_modules": true,
"**/dist": true
},

// Linting
"stylelint.enable": true,
"stylelint.validate": ["css", "scss"],
"css.validate": false,
"less.validate": false,
"scss.validate": false,
"javascript.validate.enable": false,

// Formatting
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.formatOnSave": true,

// Trim on save
"files.trimTrailingWhitespace": true,

// Special file associations
"files.associations": {
".eslintrc": "jsonc"
},

"editor.codeActionsOnSave": {
"source.fixAll": true
}
}
}

0 comments on commit ec4435f

Please sign in to comment.