chore(lint): Prettier fix
This commit is contained in:
parent
eb70732704
commit
317c62a247
1 changed files with 7 additions and 26 deletions
|
@ -43,10 +43,7 @@ This is configured in the project root’s `package.json` file.
|
|||
```json
|
||||
{
|
||||
"name": "my-project",
|
||||
"workspaces": [
|
||||
"demo",
|
||||
"packages/*"
|
||||
]
|
||||
"workspaces": ["demo", "packages/*"]
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -73,16 +70,8 @@ The `package.json` in the package directory includes all of the information rela
|
|||
"./astro": "./MyAstroComponent.astro",
|
||||
"./react": "./MyReactComponent.jsx"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"MyAstroComponent.astro",
|
||||
"MyReactComponent.jsx"
|
||||
],
|
||||
"keywords": [
|
||||
"astro-component",
|
||||
"... etc",
|
||||
"... etc"
|
||||
]
|
||||
"files": ["index.js", "MyAstroComponent.astro", "MyReactComponent.jsx"],
|
||||
"keywords": ["astro-component", "... etc", "... etc"]
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -92,7 +81,7 @@ The short description of your component used to help others know what it does.
|
|||
|
||||
```json
|
||||
{
|
||||
"description": "An Astro Element Generator",
|
||||
"description": "An Astro Element Generator"
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -128,11 +117,7 @@ In this example, importing `my-component` would use `index.js`, while importing
|
|||
|
||||
```json
|
||||
{
|
||||
"files": [
|
||||
"index.js",
|
||||
"MyAstroComponent.astro",
|
||||
"MyReactComponent.jsx"
|
||||
]
|
||||
"files": ["index.js", "MyAstroComponent.astro", "MyReactComponent.jsx"]
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -144,11 +129,7 @@ We recommend adding the `astro-component` as a special keyword to maximize its d
|
|||
|
||||
```json
|
||||
{
|
||||
"keywords": [
|
||||
"astro-component",
|
||||
"... etc",
|
||||
"... etc"
|
||||
]
|
||||
"keywords": ["astro-component", "... etc", "... etc"]
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue