From ffe53a3ace95b50c31d1a738ed97089977cb75da Mon Sep 17 00:00:00 2001 From: camc314 <18101008+camc314@users.noreply.github.com> Date: Sat, 31 Jan 2026 13:40:08 +0000 Subject: [PATCH] docs(linter): update lint function docs (#18766) --- apps/oxlint/src-js/bindings.d.ts | 2 ++ apps/oxlint/src/run.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/apps/oxlint/src-js/bindings.d.ts b/apps/oxlint/src-js/bindings.d.ts index d84e4c38ebbfd..0df31a38b20a4 100644 --- a/apps/oxlint/src-js/bindings.d.ts +++ b/apps/oxlint/src-js/bindings.d.ts @@ -62,6 +62,8 @@ export type JsSetupRuleConfigsCb = * 2. `load_plugin`: Load a JS plugin from a file path. * 3. `setup_rule_configs`: Setup configuration options. * 4. `lint_file`: Lint a file. + * 5. `create_workspace`: Create a workspace. + * 6. `destroy_workspace`: Destroy a workspace. * * Returns `true` if linting succeeded without errors, `false` otherwise. */ diff --git a/apps/oxlint/src/run.rs b/apps/oxlint/src/run.rs index 10a621f048777..8114456ea2577 100644 --- a/apps/oxlint/src/run.rs +++ b/apps/oxlint/src/run.rs @@ -114,6 +114,8 @@ pub type JsSetupRuleConfigsCb = ThreadsafeFunction< /// 2. `load_plugin`: Load a JS plugin from a file path. /// 3. `setup_rule_configs`: Setup configuration options. /// 4. `lint_file`: Lint a file. +/// 5. `create_workspace`: Create a workspace. +/// 6. `destroy_workspace`: Destroy a workspace. /// /// Returns `true` if linting succeeded without errors, `false` otherwise. #[expect(clippy::allow_attributes)]