diff --git a/apps/oxlint/Cargo.toml b/apps/oxlint/Cargo.toml index b8dfa14ea6ccc..6719e3570181b 100644 --- a/apps/oxlint/Cargo.toml +++ b/apps/oxlint/Cargo.toml @@ -60,3 +60,5 @@ lazy-regex = { workspace = true } [features] default = [] allocator = ["dep:mimalloc-safe"] +oxlint2 = ["oxc_linter/oxlint2"] +disable_oxlint2 = ["oxc_linter/disable_oxlint2"] diff --git a/crates/oxc_linter/Cargo.toml b/crates/oxc_linter/Cargo.toml index c194e28bc0814..eed1e62183ba7 100644 --- a/crates/oxc_linter/Cargo.toml +++ b/crates/oxc_linter/Cargo.toml @@ -17,6 +17,8 @@ description.workspace = true default = [] ruledocs = ["oxc_macros/ruledocs"] # Enables the `ruledocs` feature for conditional compilation language_server = ["oxc_data_structures/rope"] # For the Runtime to support needed information for the language server +oxlint2 = [] +disable_oxlint2 = [] [lints] workspace = true diff --git a/napi/oxlint2/Cargo.toml b/napi/oxlint2/Cargo.toml index 4fc5b60480ff4..b50e1314aabfc 100644 --- a/napi/oxlint2/Cargo.toml +++ b/napi/oxlint2/Cargo.toml @@ -22,7 +22,7 @@ test = false doctest = false [dependencies] -oxlint = { workspace = true } +oxlint = { workspace = true, features = ["oxlint2"] } napi = { workspace = true, features = ["async"] } napi-derive = { workspace = true }