Skip to content

Commit

Permalink
Add .swcrc to "JSON with Comments" (#6328)
Browse files Browse the repository at this point in the history
mark ".swcrc" as "JSON with Comments"

Co-authored-by: John Gardner <gardnerjohng@gmail.com>
Co-authored-by: Colin Seymour <colin@github.com>
  • Loading branch information
3 people authored May 30, 2023
1 parent 6f90995 commit 002f0ce
Show file tree
Hide file tree
Showing 2 changed files with 21 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 @@ -3135,6 +3135,7 @@ JSON with Comments:
- ".jscsrc"
- ".jshintrc"
- ".jslintrc"
- ".swcrc"
- api-extractor.json
- devcontainer.json
- jsconfig.json
Expand Down
20 changes: 20 additions & 0 deletions samples/JSON with Comments/filenames/.swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"jsc": {
"parser": {
"syntax": "ecmascript",
// use `tsx` for TypeScript
"jsx": false
},
"target": "es2015",
"loose": false,
"minify": {
"compress": false,
"mangle": false
}
},
"module": {
"type": "es6"
},
"minify": false,
"isModule": "unknown"
}

0 comments on commit 002f0ce

Please sign in to comment.