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
17 changes: 17 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"ignorePatterns": [
"lib/**",
"node_modules/**",
"docs/**",
"assets/template/**",
"CHANGELOG.md"
],
"printWidth": 80,
"singleQuote": true,
"semi": false,
"trailingComma": "es5",
"arrowParens": "avoid",
"sortPackageJson": false,
"tabWidth": 4
}
9 changes: 9 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"ignorePatterns": [
"lib/**",
"node_modules/**",
"docs/**",
"assets/template/**"
]
}
11 changes: 11 additions & 0 deletions assets/template/.oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"ignorePatterns": ["lib/**", "node_modules/**", "example/**"],
"printWidth": 80,
"singleQuote": true,
"semi": false,
"trailingComma": "es5",
"quoteProps": "preserve",
"sortPackageJson": false,
"tabWidth": 2
}
4 changes: 4 additions & 0 deletions assets/template/.oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"ignorePatterns": ["lib/**", "node_modules/**", "example/**"]
}
38 changes: 0 additions & 38 deletions assets/template/biome.json

This file was deleted.

10 changes: 6 additions & 4 deletions assets/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
"source": "src/index",
"scripts": {
"typecheck": "tsc --noEmit",
"lint": "biome check .",
"lint:fix": "biome check --write .",
"format": "biome format --write .",
"lint": "oxlint",
"lint:fix": "oxlint --fix",
"format": "oxfmt --write .",
"format:check": "oxfmt --check .",
"clean": "git clean -dfX",
"release": "semantic-release"
},
Expand Down Expand Up @@ -52,7 +53,6 @@
"registry": "https://registry.npmjs.org/"
},
"devDependencies": {
"@biomejs/biome": "^2.5.14",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/jest": "^29.5.12",
Expand All @@ -63,6 +63,8 @@
"react-native-builder-bob": "^0.43.0",
"react-native-nitro-modules": "^0.37.1",
"conventional-changelog-conventionalcommits": "^10.2.1",
"oxfmt": "^0.68.0",
"oxlint": "^1.83.0",
"semantic-release": "^25.0.7",
"typescript": "^6.0.3"
},
Expand Down
37 changes: 0 additions & 37 deletions biome.json

This file was deleted.

103 changes: 84 additions & 19 deletions bun.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ pre-commit:
- '*.json'
- '*.ts'
- '*.tsx'
run: bun biome check --write {staged_files}
run: bun oxfmt --write {staged_files} && bun oxlint --fix --no-error-on-unmatched-pattern {staged_files}
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
"prerelease:dry-run:main": "PRERELEASE_BRANCH=main bun scripts/semantic-release-prerelease.cjs --dry-run --no-ci",
"prerelease:dry-run:next": "PRERELEASE_BRANCH=next bun scripts/semantic-release-prerelease.cjs --dry-run --no-ci",
"release": "bun run build && bun semantic-release",
"lint": "biome check .",
"lint:fix": "biome check --write .",
"format": "biome format --write .",
"lint": "oxlint",
"lint:fix": "oxlint --fix",
"format": "oxfmt --write .",
"format:check": "oxfmt --check .",
"commitlint": "commitlint --edit"
},
"files": [
Expand Down Expand Up @@ -64,14 +65,15 @@
"tsup": "^8.3.5"
},
"devDependencies": {
"@biomejs/biome": "^2.5.14",
"@commitlint/cli": "^21.2.0",
"@commitlint/config-conventional": "^21.2.0",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/node": "^26.1.1",
"conventional-changelog-conventionalcommits": "^9.3.1",
"lefthook": "^2.1.9",
"oxfmt": "^0.68.0",
"oxlint": "^1.83.0",
"semantic-release": "^25.0.5",
"typescript": "6.0.3"
},
Expand Down
2 changes: 1 addition & 1 deletion src/generate-nitro-package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export class NitroModuleFactory {
const { stdout } = await execAsync(`npm view ${pkg} version`)
const v = stdout?.toString().trim()
return v?.length ? v : null
} catch (_) {
} catch {
try {
const { stdout } = await execAsync(`pnpm view ${pkg} version`)
const v = stdout?.toString().trim()
Expand Down
Loading