Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/examples/src/pages/Csv/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { WORKER_STATUS, useWorker } from '@koale/useworker'
import { useWorker, WORKER_STATUS } from '@koale/useworker'
import React from 'react'
import toast from 'react-hot-toast'

Expand Down
2 changes: 1 addition & 1 deletion apps/examples/src/pages/ExternalScripts/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { WORKER_STATUS, useWorker } from '@koale/useworker'
import { useWorker, WORKER_STATUS } from '@koale/useworker'
import React from 'react'
import toast from 'react-hot-toast'

Expand Down
2 changes: 1 addition & 1 deletion apps/examples/src/pages/Sorting/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { WORKER_STATUS, useWorker } from '@koale/useworker'
import { useWorker, WORKER_STATUS } from '@koale/useworker'
import React from 'react'
import toast from 'react-hot-toast'

Expand Down
2 changes: 1 addition & 1 deletion apps/examples/src/pages/Transferable/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { WORKER_STATUS, useWorker } from '@koale/useworker'
import { useWorker, WORKER_STATUS } from '@koale/useworker'
import React from 'react'
import toast from 'react-hot-toast'

Expand Down
4 changes: 2 additions & 2 deletions apps/examples/src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ body {
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
monospace;
font-family:
source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
}

.App {
Expand Down
3 changes: 1 addition & 2 deletions apps/website/src/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import React from 'react'

import Link from '@docusaurus/Link'
import useBaseUrl from '@docusaurus/useBaseUrl'
import useDocusaurusContext from '@docusaurus/useDocusaurusContext'
import Layout from '@theme/Layout'
import classnames from 'classnames'
import React from 'react'
import basicCode from '../code/basic'
import CodeBlock from '../components/CodeBlock'
import styles from './styles.module.css'
Expand Down
21 changes: 11 additions & 10 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false },
"files": {
"ignoreUnknown": false,
"ignore": [
"**/dist/**",
"**/node_modules/**",
"**/vite.config.mts",
"**/website/build/**",
"**/package.json"
],
"include": ["packages/**/*", "apps/**/*"]
"includes": [
"**/packages/**/*",
"**/apps/**/*",
"!**/dist/**",
"!**/node_modules/**",
"!**/vite.config.mts",
"!**/website/build/**",
"!**/package.json"
]
},
"formatter": {
"enabled": true,
Expand All @@ -23,7 +24,7 @@
"attributePosition": "auto",
"bracketSpacing": true
},
"organizeImports": { "enabled": true },
"assist": { "actions": { "source": { "organizeImports": "on" } } },
"linter": {
"enabled": true,
"rules": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"description": "⚛️ useWorker() - A React Hook for Blocking-Free Background Tasks",
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@biomejs/biome": "^2.0.0",
"@changesets/cli": "^2.27.9"
},
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions packages/useWorker/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { useWorker } from './useWorker'
export { WORKER_STATUS } from './lib/status'
export { AbortError } from './lib/abortError'
export { WORKER_STATUS } from './lib/status'
export { useWorker } from './useWorker'
74 changes: 37 additions & 37 deletions pnpm-lock.yaml

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