mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
fix(linter): change no-var to restriction
This commit is contained in:
parent
8e4b6d9d7c
commit
bb6128bfa8
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue