md에서 주석있는 json 스니펫 표현하기

json
1
2
3
4
5
6
7
```json
"scripts": {
// ...
"format": "prettier --write src/**/*.ts{,x}",
"lint": "tsc --noEmit && eslint src/**/*.ts{,x}"
}
```
jsonc
1
2
3
4
5
6
7
```json
"scripts": {
// ...
"format": "prettier --write src/**/*.ts{,x}",
"lint": "tsc --noEmit && eslint src/**/*.ts{,x}"
}
```
  • github repo의 md파일을 보면 json안의 주석이 빨간색으로 표시될 때..
  • json 대신 jsonc 를 사용하면된다
  • json with comments 라는 뜻이다
Author

chinsung

Posted on

2020-11-19

Updated on

2021-08-04

Licensed under

댓글