Skip to content

Commit 7ba7795

Browse files
committed
feat(create): add OXC toolchain (oxlint + oxfmt)
Adds OXC as a third toolchain option alongside ESLint and Biome for both React and Solid frameworks. OXC is a Rust-powered toolchain from the oxc-project that is 10-100x faster than ESLint and 30x faster than Prettier. - oxlint: fast linter (stable v1.x) - oxfmt: Prettier-compatible formatter (beta v0.x, 100% JS/TS conformance) Each framework gets: - info.json with exclusive linter slot, priority 3 (after ESLint=0, Biome=2) - package.json with lint/format/check scripts - .oxlintrc.json config (React variant includes react plugin) - .oxfmtrc.json config - small-logo.svg
1 parent b127073 commit 7ba7795

11 files changed

Lines changed: 92 additions & 0 deletions

File tree

.changeset/add-oxc-toolchain.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@tanstack/create": patch
3+
---
4+
5+
feat: add OXC toolchain (oxlint + oxfmt) for React and Solid frameworks
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"trailingComma": "all"
5+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"plugins": ["react"],
4+
"categories": {
5+
"correctness": "error"
6+
},
7+
"rules": {
8+
"react/react-in-jsx-scope": "off"
9+
},
10+
"env": {
11+
"browser": true,
12+
"node": true
13+
}
14+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "OXC",
3+
"description": "OXC toolchain support (oxlint + oxfmt).",
4+
"phase": "setup",
5+
"type": "toolchain",
6+
"category": "tooling",
7+
"exclusive": ["linter"],
8+
"color": "#FF5A1F",
9+
"priority": 3,
10+
"modes": ["code-router", "file-router"],
11+
"link": "https://oxc.rs"
12+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"scripts": {
3+
"lint": "oxlint .",
4+
"format": "oxfmt --check .",
5+
"check": "oxfmt --write . && oxlint --fix ."
6+
},
7+
"devDependencies": {
8+
"oxlint": "^1.0.0",
9+
"oxfmt": "^0.46.0"
10+
}
11+
}
Lines changed: 4 additions & 0 deletions
Loading
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"trailingComma": "all"
5+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"categories": {
4+
"correctness": "error"
5+
},
6+
"env": {
7+
"browser": true,
8+
"node": true
9+
}
10+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "OXC",
3+
"description": "OXC toolchain support (oxlint + oxfmt).",
4+
"phase": "setup",
5+
"type": "toolchain",
6+
"category": "tooling",
7+
"exclusive": ["linter"],
8+
"color": "#FF5A1F",
9+
"modes": ["code-router", "file-router"],
10+
"link": "https://oxc.rs"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"scripts": {
3+
"lint": "oxlint .",
4+
"format": "oxfmt --check .",
5+
"check": "oxfmt --write . && oxlint --fix ."
6+
},
7+
"devDependencies": {
8+
"oxlint": "^1.0.0",
9+
"oxfmt": "^0.46.0"
10+
}
11+
}

0 commit comments

Comments
 (0)