Use jsonc to parse babelrc comments in markdown files (#8643) [skip ci]
* [skip ci] use markdown jsonc to parse comments in README files * [skip ci] change json to jsonc type in other markdown files
This commit is contained in:
parent
9eef660daa
commit
29a2878973
@ -36,7 +36,7 @@ npm install --save-dev @babel/plugin-codemod-object-assign-to-object-spread
|
|||||||
|
|
||||||
**.babelrc**
|
**.babelrc**
|
||||||
|
|
||||||
```json
|
```jsonc
|
||||||
{
|
{
|
||||||
"plugins": ["@babel/plugin-codemod-object-assign-to-object-spread"]
|
"plugins": ["@babel/plugin-codemod-object-assign-to-object-spread"]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -34,7 +34,7 @@ npm install --save-dev @babel/plugin-codemod-optional-catch-binding
|
|||||||
|
|
||||||
**.babelrc**
|
**.babelrc**
|
||||||
|
|
||||||
```json
|
```jsonc
|
||||||
{
|
{
|
||||||
"plugins": ["@babel/plugin-codemod-optional-catch-binding"]
|
"plugins": ["@babel/plugin-codemod-optional-catch-binding"]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,7 +8,7 @@ For a more automatic migration, we have updated [babel-upgrade](https://github.c
|
|||||||
|
|
||||||
If you want the same configuration as before:
|
If you want the same configuration as before:
|
||||||
|
|
||||||
```json
|
```jsonc
|
||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": [
|
||||||
// Stage 0
|
// Stage 0
|
||||||
|
|||||||
@ -8,7 +8,7 @@ For a more automatic migration, we have updated [babel-upgrade](https://github.c
|
|||||||
|
|
||||||
If you want the same configuration as before:
|
If you want the same configuration as before:
|
||||||
|
|
||||||
```json
|
```jsonc
|
||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": [
|
||||||
// Stage 1
|
// Stage 1
|
||||||
|
|||||||
@ -8,7 +8,7 @@ For a more automatic migration, we have updated [babel-upgrade](https://github.c
|
|||||||
|
|
||||||
If you want the same configuration as before:
|
If you want the same configuration as before:
|
||||||
|
|
||||||
```json
|
```jsonc
|
||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": [
|
||||||
// Stage 2
|
// Stage 2
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user