File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -365,7 +365,7 @@ fn test() {
365365 <div className="foo">
366366 <input className="boo" />
367367 <span className="foobar">Foobar</span>
368- <div otherProp="bar" />
368+ <div otherProp="bar" className="forbiddenClassname" />
369369 </div>
370370 );
371371 "# ,
Original file line number Diff line number Diff line change @@ -86,13 +86,21 @@ source: crates/oxc_linter/src/tester.rs
8686 4 │ <input className =" boo" />
8787 5 │ <span className =" foobar" >Foobar </span >
8888 · ─────────
89- 6 │ <div otherProp =" bar" />
89+ 6 │ <div otherProp =" bar" className = " forbiddenClassname " />
9090 ╰────
9191
9292 ⚠ eslint -plugin -react (forbid -dom -props ): Avoid using otherProp
9393 ╭─[forbid_dom_props .tsx :6:30]
9494 5 │ <span className =" foobar" >Foobar </span >
95- 6 │ <div otherProp =" bar" />
95+ 6 │ <div otherProp =" bar" className = " forbiddenClassname " />
9696 · ─────────
9797 7 │ </div >
9898 ╰────
99+
100+ ⚠ eslint -plugin -react (forbid -dom -props ): Please use class instead of ClassName
101+ ╭─[forbid_dom_props .tsx :6:46]
102+ 5 │ <span className =" foobar" >Foobar </span >
103+ 6 │ <div otherProp =" bar" className =" forbiddenClassname" />
104+ · ─────────
105+ 7 │ </div >
106+ ╰────
You can’t perform that action at this time.
0 commit comments