mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
0b4e2e67f4
# Oxlint ### 🚀 Features -60b945dlinter/nextjs/no-typos: Implement suggestion (#26091) (Mikhail Baev) ### 🐛 Bug Fixes -33ac4b0linter/lsp: Prevent tsgolint from holding onto processes (#25570) (Adrian Schaedle) -baf4b1elinter/import/no-empty-named-blocks: Make empty value import removal a suggestion (#26155) (camc314) -77cfaeclinter/eslint/object-shorthand: Preserve `__proto__` semantics (#26154) (camc314) -fa3c082linter/unicorn/prefer-set-size: Ignore shadowed `Set` constructors (#26153) (camc314) -e412cf2linter: Clamp invalid JS plugin locations (#26144) (camc314) -d86c113linter: Normalize reversed JS plugin locations (#26138) (camc314) -73c09b2linter/eslint/no-use-before-define: Run on JS, JSX files (#26114) (camc314) -03ef0f2linter/unicorn/no-useless-spread: Treat typed arrays as a distinct value hint (#26067) (Aadharsh Pannirselvam) -bd15905linter/react/no-unstable-nested-components: Check nested component object property names (#26101) (camc314) -3910e2blinter/eslint/no-unassigned-vars: Skip Svelte and Vue files (#26042) (Hamody We) -047f7calinter/plugins: Fix interaction between JS plugins and Vue rules (#26080) (overlookmotel) -8531b9blinter/plugins: Alter method for obtaining mutable `Program` when sending AST to JS plugins (#26077) (overlookmotel) -dc464fflinter/unicorn/prefer-math-min-max: Avoid unsafe autofix (#26060) (camc314) ### 📚 Documentation -464ddd1linter: Support a shared short description for jest/vitest rules (#26186) (connorshea) -9db5ad3linter: Add short description to `vue/no-dupe-keys` (#26183) (connorshea) -db66f58linter: Correct export/import mismatch in bar and foo example (#25927) (billychannnnnn) -d5be037linter/typescript/switch-exhaustiveness-check: Clarify default case comment pattern (#26100) (camc314) # Oxfmt ### 🚀 Features -1fb37b6formatter/css: Format declaration-shaped raw-prelude rules (postcss nested config blocks) (#26194) (leaysgur) ### 🐛 Bug Fixes -57e8e22formatter_css: Space a folded sign after a call in Less operations (#26134) (leaysgur) -e4298fbformatter/jsdoc: Follow CommonMark for interrupting lists and guard wrapping from creating them (#26098) (leaysgur) -a1e21c2formatter: Apply head body policy everywhere (#26074) (leaysgur) -676b7e1formatter: Keep comments in their for-head slot, before an empty-statement body and do-while (#26073) (leaysgur) -3bbcea6formatter: Keep comments between a head and its body out of the braces across all constructs (#26071) (leaysgur) -57537a2formatter: Place comments between a head and open paren (#26058) (leaysgur) -e2d53e7formatter: Place comments between a statement head and its body (#26043) (leaysgur) -662556cformatter: Print the idempotent placement for comments in dropped parens (#26041) (leaysgur) -faf11d9formatter_yaml: Keep trailing whitespace in block scalars (#26072) (leaysgur) ### ⚡ Performance -ac4785adiagnostics: Use fixed ANSI styles (#26130) (Boshen) ### 📚 Documentation -b879608formatter,formatter_graphql,formatter_yaml: Annotate own-line comment inlining as known policy violation (#26131) (leaysgur) -181953boxfmt,formatter_core,formatter,formatter_yaml,formatter_css,formatter_graphql: Extract `DIVERGENCES.md` out from `AGENTS.md` (#26121) (leaysgur) -a67cb9dformatter,formatter_core: Document comment moving policy (#26075) (leaysgur) -fc175b0formatter_core: Clarify idempotency test infra (#26069) (leaysgur)
92 lines
2.9 KiB
TOML
92 lines
2.9 KiB
TOML
[package]
|
|
name = "oxlint"
|
|
version = "1.81.0"
|
|
authors.workspace = true
|
|
categories.workspace = true
|
|
edition.workspace = true
|
|
homepage.workspace = true
|
|
keywords.workspace = true
|
|
license.workspace = true
|
|
publish = false
|
|
repository.workspace = true
|
|
rust-version.workspace = true
|
|
description.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "lib"]
|
|
path = "src/lib.rs"
|
|
doctest = false
|
|
|
|
[[bin]]
|
|
name = "oxlint"
|
|
path = "src/main.rs"
|
|
test = false
|
|
doctest = false
|
|
|
|
[dependencies]
|
|
oxc_allocator = { workspace = true, features = ["fixed_size"] }
|
|
oxc_ast = { workspace = true }
|
|
oxc_ast_visit = { workspace = true, features = ["serialize"] }
|
|
oxc_config = { workspace = true }
|
|
oxc_diagnostics = { workspace = true }
|
|
oxc_estree_tokens = { workspace = true }
|
|
oxc_language_server = { workspace = true }
|
|
oxc_linter = { workspace = true }
|
|
oxc_napi = { workspace = true }
|
|
oxc_parser = { workspace = true }
|
|
oxc_semantic = { workspace = true }
|
|
oxc_span = { workspace = true }
|
|
oxc_str = { workspace = true }
|
|
|
|
bpaf = { workspace = true, features = ["autocomplete", "bright-color", "derive"] }
|
|
cow-utils = { workspace = true }
|
|
ignore = { workspace = true, features = ["simd-accel"] }
|
|
napi = { workspace = true, features = ["async"], optional = true }
|
|
tracing = { workspace = true }
|
|
napi-derive = { workspace = true, optional = true }
|
|
rayon = { workspace = true }
|
|
rustc-hash = { workspace = true }
|
|
schemars = { workspace = true }
|
|
serde = { workspace = true, features = ["derive"] }
|
|
serde_json = { workspace = true }
|
|
tempfile = { workspace = true }
|
|
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
|
|
tracing-subscriber = { workspace = true, features = [] } # Omit the `regex` feature
|
|
tower-lsp-server = { workspace = true, features = ["proposed"] }
|
|
|
|
[target.'cfg(not(any(target_os = "linux", target_os = "freebsd", target_arch = "arm", target_arch = "riscv64", target_family = "wasm")))'.dependencies]
|
|
mimalloc-safe = { workspace = true, optional = true, features = ["skip_collect_on_exit"] }
|
|
|
|
[target.'cfg(all(target_os = "linux", not(target_arch = "arm"), not(target_arch = "aarch64"), not(target_arch = "riscv64")))'.dependencies]
|
|
mimalloc-safe = { workspace = true, optional = true, features = [
|
|
"skip_collect_on_exit",
|
|
"local_dynamic_tls",
|
|
] }
|
|
|
|
[target.'cfg(all(target_os = "linux", target_arch = "aarch64"))'.dependencies]
|
|
mimalloc-safe = { workspace = true, optional = true, features = [
|
|
"skip_collect_on_exit",
|
|
"local_dynamic_tls",
|
|
"no_opt_arch",
|
|
] }
|
|
|
|
[build-dependencies]
|
|
napi-build = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
insta = { workspace = true }
|
|
lazy-regex = { workspace = true }
|
|
|
|
[features]
|
|
default = ["napi"]
|
|
napi = ["dep:napi", "dep:napi-derive"]
|
|
allocator = ["dep:mimalloc-safe"]
|
|
# For use in NAPI tests.
|
|
# - Enables test reporter.
|
|
# - Sorts file paths before linting if oxlint is run with `--threads 1`.
|
|
testing = ["oxc_linter/force_test_reporter"]
|
|
ruledocs = ["oxc_linter/ruledocs"]
|