Skip to content

Commit

Permalink
fix: tags on jsx-boolean-value
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister committed Nov 29, 2024
1 parent 3184b40 commit c2cff09
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/rules/jsx_boolean_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

use super::{Context, LintRule};
use crate::handler::{Handler, Traverse};
use crate::Program;
use crate::tags::Tags;
use crate::{tags, Program};
use deno_ast::view::{Expr, JSXAttr, JSXAttrValue, JSXExpr, Lit};
use deno_ast::SourceRanged;

Expand All @@ -12,8 +13,8 @@ pub struct JSXBooleanValue;
const CODE: &str = "jsx-boolean-value";

impl LintRule for JSXBooleanValue {
fn tags(&self) -> &'static [&'static str] {
&["recommended", "react", "jsx"]
fn tags(&self) -> Tags {
&[tags::RECOMMENDED, tags::REACT, tags::JSX]
}

fn code(&self) -> &'static str {
Expand Down

0 comments on commit c2cff09

Please sign in to comment.