We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--experimental-js-plugins
1 parent 08c05df commit 68a2280Copy full SHA for 68a2280
apps/oxlint/src/lib.rs
@@ -55,9 +55,13 @@ pub fn lint(mut external_linter: Option<ExternalLinter>) -> CliRunResult {
55
56
command.handle_threads();
57
58
+ #[expect(clippy::print_stderr)]
59
if command.experimental_js_plugins {
- // If this assertion fails, this function was not called by `napi/oxlint2`.
60
- assert!(external_linter.is_some(), "JS plugins are not supported at present");
+ // If no `ExternalLinter`, this function was not called by `napi/oxlint2`
61
+ if external_linter.is_none() {
62
+ eprintln!("ERROR: JS plugins are not supported at present");
63
+ return CliRunResult::InvalidOptionConfig;
64
+ }
65
} else {
66
external_linter = None;
67
}
0 commit comments