Skip to content

Commit d4ebd14

Browse files
committed
feat(linter): add oxlint2/disable_oxlint2 feature flags (#12130)
1 parent 8cd69d1 commit d4ebd14

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

apps/oxlint/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,5 @@ lazy-regex = { workspace = true }
6060
[features]
6161
default = []
6262
allocator = ["dep:mimalloc-safe"]
63+
oxlint2 = ["oxc_linter/oxlint2"]
64+
disable_oxlint2 = ["oxc_linter/disable_oxlint2"]

crates/oxc_linter/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ description.workspace = true
1717
default = []
1818
ruledocs = ["oxc_macros/ruledocs"] # Enables the `ruledocs` feature for conditional compilation
1919
language_server = ["oxc_data_structures/rope"] # For the Runtime to support needed information for the language server
20+
oxlint2 = []
21+
disable_oxlint2 = []
2022

2123
[lints]
2224
workspace = true

napi/oxlint2/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ test = false
2222
doctest = false
2323

2424
[dependencies]
25-
oxlint = { workspace = true }
25+
oxlint = { workspace = true, features = ["oxlint2"] }
2626

2727
napi = { workspace = true, features = ["async"] }
2828
napi-derive = { workspace = true }

0 commit comments

Comments
 (0)