Skip to content

Commit 7277bbd

Browse files
Merge branch 'main' into share-extends
2 parents 99c8690 + 93b752a commit 7277bbd

Some content is hidden

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

42 files changed

+667
-671
lines changed

.changeset/wild-otters-report.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@t3-oss/env-core": patch
3+
---
4+
5+
add preset for upstash redis environment variables
Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
/// <reference types="bun-types" />
22
export const MODULE = true;
33

4-
declare module "bun" {
5-
interface BunFile {
6-
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
7-
json(): Promise<any>;
8-
}
9-
}
10-
114
/**
125
* Hack to replace the workspace protocol with the actual version
136
*/

.github/setup/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ runs:
55
steps:
66
- uses: actions/setup-node@v4
77
with:
8-
node-version: 20.x
8+
node-version: 22.x
99

1010
- uses: oven-sh/setup-bun@v1
1111
with:
12-
bun-version: 1.0.25
12+
bun-version: latest
1313

1414
- run: bun install
1515
shell: bash

.github/workflows/release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,15 @@ jobs:
3535
- name: Fix formatting
3636
if: steps.changeset.outputs.hasChangesets == 'true'
3737
run: |
38+
git config user.name "${{ github.actor }}"
39+
git config user.email "${{ github.actor }}@users.noreply.github.com"
3840
git checkout changeset-release/main
3941
bun lint:fix
4042
git add .
41-
git commit -m "chore(release): 📦 fix formatting"
42-
git push origin changeset-release/main
43+
# Check if there are staged changes before committing and pushing
44+
if ! git diff --staged --quiet; then
45+
git commit -m "chore(release): 📦 fix formatting"
46+
git push origin changeset-release/main
47+
else
48+
echo "No formatting changes to commit."
49+
fi

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
node_modules
22
dist
3+
.cache
34

45
.astro
56
.next
@@ -12,5 +13,4 @@ dist
1213
env.d.ts
1314
next-env.d.ts
1415
**/.vscode
15-
**/.zed
16-
*.tsbuildinfo
16+
**/.zed

biome.json

Lines changed: 0 additions & 46 deletions
This file was deleted.

biome.jsonc

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.0.0-beta.1/schema.json",
3+
"assist": {
4+
"actions": {
5+
"source": {
6+
"organizeImports": "on"
7+
}
8+
}
9+
},
10+
"formatter": {
11+
"enabled": true,
12+
"indentWidth": 2,
13+
"indentStyle": "space"
14+
},
15+
"linter": {
16+
"enabled": true,
17+
"rules": {
18+
"style": {
19+
"useImportType": "error",
20+
"useExportType": "error",
21+
"useLiteralEnumMembers": "error",
22+
"noCommaOperator": "error",
23+
"useNodejsImportProtocol": "error",
24+
"useAsConstAssertion": "error",
25+
"useNumericLiterals": "error",
26+
"useEnumInitializers": "error",
27+
"useSelfClosingElements": "error",
28+
"useConst": "error",
29+
"useSingleVarDeclarator": "error",
30+
"noUnusedTemplateLiteral": "error",
31+
"useNumberNamespace": "error",
32+
"noInferrableTypes": "error",
33+
"useExponentiationOperator": "error",
34+
"useTemplate": "error",
35+
"noParameterAssign": "error",
36+
"noNonNullAssertion": "error",
37+
"useDefaultParameterLast": "error",
38+
"noArguments": "error",
39+
"noUselessElse": "error",
40+
"useShorthandFunctionType": "error"
41+
},
42+
"a11y": {
43+
"noSvgWithoutTitle": "off",
44+
"useButtonType": "off",
45+
"useAltText": "off"
46+
},
47+
"complexity": {
48+
"noBannedTypes": "off"
49+
}
50+
}
51+
},
52+
"overrides": [
53+
{
54+
"includes": ["**/*.test.ts"],
55+
"linter": {
56+
"rules": {
57+
"suspicious": {
58+
"noExplicitAny": "off"
59+
}
60+
}
61+
}
62+
}
63+
],
64+
"vcs": {
65+
"enabled": true,
66+
"clientKind": "git",
67+
"useIgnoreFile": true
68+
}
69+
}

0 commit comments

Comments
 (0)