From bb6128bfa8141050b107e995960ff939d3155761 Mon Sep 17 00:00:00 2001 From: Boshen Date: Sat, 6 Jan 2024 21:01:34 +0800 Subject: [PATCH] fix(linter): change no-var to restriction --- crates/oxc_linter/src/rules/eslint/no_var.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/oxc_linter/src/rules/eslint/no_var.rs b/crates/oxc_linter/src/rules/eslint/no_var.rs index 549c437f5..4ade71dbd 100644 --- a/crates/oxc_linter/src/rules/eslint/no_var.rs +++ b/crates/oxc_linter/src/rules/eslint/no_var.rs @@ -22,7 +22,7 @@ pub struct NoVar; declare_oxc_lint!( /// ### What it does - /// ECMAScript 6 allows programmers to create variables with block scope instead of function scope using the `let` and `const` keywords. + /// ECMAScript 6 allows programmers to create variables with block scope instead of function scope using the `let` and `const` keywords. /// Block scope is common in many other programming languages and helps programmers avoid mistakes /// /// ### Why is this bad? @@ -39,7 +39,7 @@ declare_oxc_lint!( /// const CONFIG = {}; /// ``` NoVar, - correctness + restriction ); impl Rule for NoVar {