Skip to content

Commit 5a71063

Browse files
authored
feat: add no-const-assign to the recommended set (#1466)
1 parent 11825a2 commit 5a71063

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/rules/no_const_assign.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
use super::{Context, LintRule};
44
use crate::handler::{Handler, Traverse};
5+
use crate::tags::{self, Tags};
56
use crate::Program;
67
use deno_ast::view::{
78
ArrayPat, AssignExpr, AssignTarget, AssignTargetPat, Expr, Ident, ObjectPat,
@@ -33,6 +34,10 @@ impl LintRule for NoConstAssign {
3334
CODE
3435
}
3536

37+
fn tags(&self) -> Tags {
38+
&[tags::RECOMMENDED]
39+
}
40+
3641
fn lint_program_with_ast_view<'view>(
3742
&self,
3843
context: &mut Context,

0 commit comments

Comments
 (0)