Skip to content

Commit 0697ca3

Browse files
committed
chore: use biome check
1 parent 0cf9526 commit 0697ca3

63 files changed

Lines changed: 143 additions & 141 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.husky/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npx --no-install commitlint --config commitlint.config.js --edit "$1"
4+
pnpm commitlint --config commitlint.config.js --edit "$1"

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
pnpm format && pnpm lint && pnpm test
4+
pnpm check && pnpm test

.vscode/settings.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"biome.enabled": true,
55
"eslint.enable": false,
66
"editor.codeActionsOnSave": {
7-
"source.fixAll": "always"
7+
"source.fixAll": "explicit",
8+
"source.organizeImports": "explicit"
89
},
910
"typescript.tsdk": "node_modules/typescript/lib"
10-
}
11+
}

config/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { builtinModules } from 'node:module'
12
import { defineConfig } from 'vite'
23
import dts from 'vite-plugin-dts'
3-
import { builtinModules } from 'node:module'
44

55
export const build = (dependencies: Record<string, string> = {}) =>
66
defineConfig({

examples/async/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { App } from '@tinyhttp/app'
21
import { readFile } from 'node:fs/promises'
2+
import { App } from '@tinyhttp/app'
33

44
const app = new App()
55

examples/cluster/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { App } from '@tinyhttp/app'
21
import cluster from 'node:cluster'
32
import os from 'node:os'
3+
import { App } from '@tinyhttp/app'
44

55
if (cluster.isPrimary) {
66
for (let i = 0; i < os.cpus().length; i++) {

examples/custom-view/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import fs from 'node:fs/promises'
12
import { App } from '@tinyhttp/app'
23
import { CustomView } from './view.js'
3-
import fs from 'node:fs/promises'
44

55
const app = new App()
66

examples/elasticsearch/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { config } from '@tinyhttp/dotenv'
21
import { Client } from '@elastic/elasticsearch'
2+
import { config } from '@tinyhttp/dotenv'
33
config()
44

55
//define elastic client and read keys from the environment

examples/elasticsearch/server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { App } from '@tinyhttp/app'
2-
import { isEmptyObject, hasPostProps, PORT, isEmptyString } from './utils.js'
3-
import { search, insert, bulkInsert } from './client.js'
42
import { json as json_parser } from 'milliparsec'
3+
import { bulkInsert, insert, search } from './client.js'
4+
import { PORT, hasPostProps, isEmptyObject, isEmptyString } from './utils.js'
55

66
const app = new App().use('/', json_parser())
77

examples/firebase-functions/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as functions from 'firebase-functions'
21
import { App, type Request, type Response } from '@tinyhttp/app'
2+
import * as functions from 'firebase-functions'
33
const tinyhttp = new App()
44

55
/** Your application code */

0 commit comments

Comments
 (0)