Skip to content

Commit

Permalink
update biome to use space indent style
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-phan committed Jul 11, 2024
1 parent d15d9cc commit 3b26160
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 697 deletions.
691 changes: 0 additions & 691 deletions .editorconfig

This file was deleted.

3 changes: 2 additions & 1 deletion packages/biome/biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"javascript": {
"formatter": {
"semicolons": "asNeeded",
"quoteStyle": "single"
"quoteStyle": "single",
"indentStyle": "space"
}
},
"files": {
Expand Down
2 changes: 1 addition & 1 deletion packages/biome/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@weaverse/biome",
"version": "1.0.1",
"version": "1.0.2",
"description": "Biome configuration for Weaverse",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down
3 changes: 2 additions & 1 deletion packages/hydrogen/src/components/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ let Main = forwardRef<
let { children, dangerouslySetInnerHTML, ...rest } = props

return (
// eslint-disable-next-line react/no-danger-with-children
<div
ref={ref}
{...rest}
// biome-ignore lint/correctness/noChildrenProp: <explanation>
children={children}
// biome-ignore lint/security/noDangerouslySetInnerHtmlWithChildren: <explanation>
dangerouslySetInnerHTML={children ? undefined : dangerouslySetInnerHTML}
/>
)
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export let useItemInstance = (id?: string) => {
let { id: currentId } = useContext(WeaverseItemContext)
let instance = Weaverse.itemInstances.get(id || currentId)
if (!instance) {
console.warn(`Item instance ${id} not found`)
console.log(`Item instance ${id} not found`)
return null
}
return instance as WeaverseItemStore
Expand Down
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3b26160

Please sign in to comment.