Skip to content

Commit f13f48a

Browse files
committed
Update dependencies and migrate to oxc
1 parent 0dd2a97 commit f13f48a

16 files changed

Lines changed: 520 additions & 566 deletions

File tree

.codesandbox/ci.json

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

.codesandbox/ci.sh

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

.github/workflows/main.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ jobs:
66
name: Build and Typecheck
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v4
10-
- uses: oven-sh/setup-bun@v1
9+
- uses: actions/checkout@v6
10+
- uses: oven-sh/setup-bun@v2
1111
- run: bun install --frozen-lockfile
1212
- run: bunx tsc --noEmit
13-
- run: bun --bun run build
13+
- run: bun run build
14+
- run: bun run lint --format=github
15+
- run: bun run fmt --check

.oxfmtrc.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"ignorePatterns": [],
4+
"printWidth": 100,
5+
"tabWidth": 2,
6+
"useTabs": false,
7+
"semi": true,
8+
"singleQuote": true,
9+
"trailingComma": "es5",
10+
"bracketSpacing": true,
11+
"bracketSameLine": true,
12+
"arrowParens": "avoid",
13+
"embeddedLanguageFormatting": "auto",
14+
"sortPackageJson": false,
15+
"sortImports": {
16+
"newlinesBetween": false
17+
},
18+
"overrides": [{
19+
"files": ["example/**/*.ts{,x}"],
20+
"options": {
21+
"printWidth": 80
22+
}
23+
}]
24+
}

.oxlintrc.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"plugins": ["typescript", "unicorn", "oxc"],
4+
"options": {
5+
"typeAware": true,
6+
"typeCheck": true,
7+
"reportUnusedDisableDirectives": "warn"
8+
},
9+
"categories": {
10+
"correctness": "error"
11+
},
12+
"rules": {
13+
"no-explicit-any": "error",
14+
"unbound-method": "allow",
15+
},
16+
"env": {
17+
"builtin": true
18+
}
19+
}

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"editor.formatOnSave": true,
33
"files.eol": "\n",
4-
"typescript.tsdk": "node_modules/typescript/lib"
4+
"js/ts.tsdk.path": "node_modules/typescript/lib"
55
}

bun.lock

Lines changed: 348 additions & 373 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/scss.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
declare module '*.scss';

example/src/App.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { ChakraProvider, extendTheme } from '@chakra-ui/react';
2+
// @ts-ignore
23
import { QueryBuilderChakra } from '@react-querybuilder/chakra2';
34
import { useState } from 'react';
45
import type { Field, RuleGroupType } from 'react-querybuilder';

example/src/scss.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
declare module '*.scss';

0 commit comments

Comments
 (0)