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
9 changes: 6 additions & 3 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,22 @@ A-editor:

A-formatter:
- changed-files:
- any-glob-to-any-file: ["crates/oxc_formatter/**", "tasks/prettier_conformance/**", "apps/oxfmt/**"]
- any-glob-to-any-file:
["crates/oxc_formatter/**", "tasks/prettier_conformance/**", "apps/oxfmt/**"]

A-transformer:
- changed-files:
- any-glob-to-any-file: ["crates/oxc_transformer/**", "tasks/transform_conformance/**", "napi/transform/**"]
- any-glob-to-any-file:
["crates/oxc_transformer/**", "tasks/transform_conformance/**", "napi/transform/**"]

A-linter:
- changed-files:
- any-glob-to-any-file: ["crates/oxc_linter/**", "apps/oxlint/**"]

A-linter-plugins:
- changed-files:
- any-glob-to-any-file: ["apps/oxlint/src-js/**", "apps/oxlint/test/**", "apps/oxlint/conformance/**"]
- any-glob-to-any-file:
["apps/oxlint/src-js/**", "apps/oxlint/test/**", "apps/oxlint/conformance/**"]

A-minifier:
- changed-files:
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,11 @@ jobs:

- uses: oxc-project/setup-node@141eb77546de6702f92d320926403fe3f9f6a6f2 # v1.0.5

- name: Restore dprint plugin cache
id: cache-restore
uses: actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
with:
key: dprint-${{ hashFiles('dprint.json') }}
path: ~/.cache/dprint

- uses: oxc-project/setup-rust@ecabb7322a2ba5aeedb3612d2a40b86a85cee235 # v1.0.11
with:
restore-cache: true
cache-key: warm
tools: just,dprint,[email protected]
tools: just,[email protected]
components: rustfmt

- name: cargo-shear
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,9 @@ jobs:
with:
cache-key: warm
save-cache: false
tools: just,cargo-insta,typos-cli,cargo-shear,dprint,ast-grep
tools: just,cargo-insta,typos-cli,cargo-shear,ast-grep
components: clippy rust-docs rustfmt rust-analyzer

- uses: oxc-project/setup-node@141eb77546de6702f92d320926403fe3f9f6a6f2 # v1.0.5

- name: Restore dprint plugin cache
id: cache-restore
uses: actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
with:
key: dprint-${{ hashFiles('dprint.json') }}
path: ~/.cache/dprint

- run: pnpm run --filter mcp-oxc build
30 changes: 0 additions & 30 deletions .github/workflows/dprint.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/update_submodules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- uses: oxc-project/setup-rust@ecabb7322a2ba5aeedb3612d2a40b86a85cee235 # v1.0.11
with:
cache-key: conformance
tools: just,dprint,[email protected]
tools: just,[email protected]
components: rustfmt

- name: Get latest SHAs for all submodules
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ target/
/tasks/benchmark/codspeed/node_modules/
/tasks/transform_conformance/node_modules/
/tasks/compat_data/node_modules/
/tasks/compat_data/compat-table/
/tasks/e2e/node_modules/
/tasks/e2e/tests/nestjs/node_modules/
/npm/*/node_modules
Expand Down
20 changes: 5 additions & 15 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,8 @@
"label": "rust: cargo test --no-run",
"type": "cargo",
"command": "test",
"args": [
"--no-run"
],
"problemMatcher": [
"$rustc"
],
"args": ["--no-run"],
"problemMatcher": ["$rustc"],
"group": {
"kind": "build",
"isDefault": true
Expand All @@ -26,16 +22,12 @@
"showReuseMessage": false,
"clear": true
},
"dependsOn": [
"rust: cargo fmt"
]
"dependsOn": ["rust: cargo fmt"]
},
{
"type": "cargo",
"command": "fmt",
"problemMatcher": [
"$rustc"
],
"problemMatcher": ["$rustc"],
"presentation": {
"echo": true,
"reveal": "silent",
Expand All @@ -54,9 +46,7 @@
"panel": "dedicated",
"reveal": "never"
},
"problemMatcher": [
"$tsc"
]
"problemMatcher": ["$tsc"]
},
{
"type": "shell",
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Prerequisites: Rust (MSRV: 1.91), Node.js, pnpm, just

**Setup Notes:**

- All tools already installed (`cargo-insta`, `typos-cli`, `cargo-shear`, `dprint`, `ast-grep`)
- All tools already installed (`cargo-insta`, `typos-cli`, `cargo-shear`, `ast-grep`)
- Rust components already installed (`clippy`, `rust-docs`, `rustfmt`)
- Run `just ready` after commits for final checks
- You run in an environment where `ast-grep` is available; whenever a search requires syntax-aware or structural matching, default to `ast-grep --lang rust -p '<pattern>'` (or set `--lang` appropriately) and avoid falling back to text-only tools like `rg` or `grep` unless I explicitly request a plain-text search.
Expand Down
2 changes: 1 addition & 1 deletion ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ This clear distinction greatly enhances the development experience by aligning m
- Symbol search and completion
- **Dependencies**: All core components

#### NAPI Bindings (napi/*)
#### NAPI Bindings (napi/\*)

- **Purpose**: Node.js integration layer
- **Key Features**:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Oxc is part of [VoidZero](https://voidzero.dev/)'s vision for a unified, high-pe

For more information, check out our website at [oxc.rs](https://oxc.rs).

<sub>* Oxidation is the chemical process that creates rust</sub>
<sub>\* Oxidation is the chemical process that creates rust</sub>

## 🏗️ Design Principles

Expand Down
10 changes: 5 additions & 5 deletions apps/oxfmt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"name": "oxfmt-app",
"version": "0.18.0",
"private": true,
"type": "module",
"main": "dist/index.js",
"description": "Internal development package for oxfmt. For the published package.json template, see `npm/oxfmt/package.json`.",
"license": "MIT",
"type": "module",
"main": "dist/index.js",
"scripts": {
"build": "pnpm run build-napi-release && pnpm run build-js",
"build-dev": "pnpm run build-napi && pnpm run build-js",
Expand All @@ -16,9 +16,6 @@
"build-js": "node scripts/build.js",
"test": "tsc && vitest --dir test run"
},
"engines": {
"node": "^20.19.0 || >=22.12.0"
},
"dependencies": {
"prettier": "3.7.4",
"tinypool": "2.0.0"
Expand All @@ -43,5 +40,8 @@
"darwin-x64",
"darwin-arm64"
]
},
"engines": {
"node": "^20.19.0 || >=22.12.0"
}
}
9 changes: 2 additions & 7 deletions apps/oxfmt/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@
"strict": true,
"skipLibCheck": true
},
"include": [
"src-js",
"test/**/*.ts"
],
"exclude": [
"test/fixtures"
]
"include": ["src-js", "test/**/*.ts"],
"exclude": ["test/fixtures"]
}
14 changes: 7 additions & 7 deletions apps/oxlint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
"name": "oxlint-app",
"version": "1.33.0",
"private": true,
"type": "module",
"main": "dist/index.js",
"description": "Internal development package for oxlint. For the published package.json template, see `npm/oxlint/package.json`.",
"license": "MIT",
"type": "module",
"main": "dist/index.js",
"imports": {
"#oxlint": "./dist/index.js"
},
"scripts": {
"build": "pnpm run build-napi-release && pnpm run build-js",
"build-dev": "pnpm run build-napi && cross-env DEBUG=true pnpm run build-js",
Expand All @@ -19,9 +22,6 @@
"init-conformance": "cd conformance; ./init.sh",
"conformance": "node ./conformance/src/index.ts"
},
"engines": {
"node": "^20.19.0 || >=22.12.0"
},
"devDependencies": {
"@types/esquery": "^1.5.4",
"@types/estree": "^1.0.8",
Expand Down Expand Up @@ -54,7 +54,7 @@
"darwin-arm64"
]
},
"imports": {
"#oxlint": "./dist/index.js"
"engines": {
"node": "^20.19.0 || >=22.12.0"
}
}
8 changes: 2 additions & 6 deletions apps/oxlint/test/fixtures/globals/.oxlintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"jsPlugins": [
"./plugin.ts"
],
"jsPlugins": ["./plugin.ts"],
"categories": {
"correctness": "off"
},
Expand All @@ -20,9 +18,7 @@
},
"overrides": [
{
"files": [
"files/nested/**"
],
"files": ["files/nested/**"],
"globals": {
"React": "writable",
"process": "off",
Expand Down
16 changes: 3 additions & 13 deletions apps/oxlint/test/fixtures/options/.oxlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
"error",
false,
{
"array": [
{ "deep": true, "str": "hello" },
456
],
"array": [{ "deep": true, "str": "hello" }, 456],
"not": null
}
],
Expand All @@ -37,15 +34,8 @@
{
"files": ["files/nested/**"],
"rules": {
"options-plugin/options": [
"error",
{ "somethingElse": true }
],
"options-plugin/merge-options": [
"error",
{ "fromConfig": 21 },
{ "fromConfig": 22 },
]
"options-plugin/options": ["error", { "somethingElse": true }],
"options-plugin/merge-options": ["error", { "fromConfig": 21 }, { "fromConfig": 22 }]
}
}
]
Expand Down
7 changes: 1 addition & 6 deletions apps/oxlint/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,5 @@
"strictNullChecks": true,
"skipLibCheck": true
},
"exclude": [
"node_modules",
"fixtures",
"test/fixtures/*/files",
"conformance/submodules"
]
"exclude": ["node_modules", "fixtures", "test/fixtures/*/files", "conformance/submodules"]
}
1 change: 1 addition & 0 deletions crates/oxc_minifier/docs/CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ cargo run -p oxc_minifier --example minifier test.js --twice
- Preserve semantics

3. **Test thoroughly**

```bash
cargo test -p oxc_minifier
cargo coverage
Expand Down
26 changes: 0 additions & 26 deletions dprint.json

This file was deleted.

Loading
Loading