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.
consistent-function-scoping
.d.ts
1 parent ff775e9 commit 7c0fff7Copy full SHA for 7c0fff7
crates/oxc_linter/src/rules/unicorn/consistent_function_scoping.rs
@@ -299,6 +299,11 @@ impl Rule for ConsistentFunctionScoping {
299
function_name,
300
));
301
}
302
+
303
+ fn should_run(&self, ctx: &crate::context::ContextHost) -> bool {
304
+ // .d.ts files are never run, so there are no perf considerations for them.
305
+ !ctx.source_type().is_typescript_definition()
306
+ }
307
308
309
#[derive(Default)]
0 commit comments