eslint-plugin-react icon indicating copy to clipboard operation
eslint-plugin-react copied to clipboard

[New]: `forbid-dom-props`: support React Strict Dom elements (`html.div`, etc)

Open mdjastrzebski opened this issue 3 months ago • 6 comments

Summary

Add suport for React Strict DOM notation of DOM nodes: html.div, html.span, h.h1, etc

Details

The code is based on forbid-component-props rule that already supported Namespace.Component notation.

Testing

Added pass/fail tests for html.div, h.span, etc

mdjastrzebski avatar Aug 19 '25 10:08 mdjastrzebski