github Rel1cx/eslint-react v1.0.0

latest releases: v1.53.1, v1.53.0, v1.52.9...
19 months ago

v1.0.0 (Sat Jan 27 2024)

💥 Breaking Changes

All DOM related rules are moved to react-dom namespace

  • Rename rule react/no-children-in-void-dom-elements to react-dom/no-children-in-void-dom-elements
  • Rename rule react/no-dangerously-set-innerhtml-with-children to react-dom/no-dangerously-set-innerhtml-with-children
  • Rename rule react/no-dangerously-set-innerhtml to react-dom/no-dangerously-set-innerhtml
  • Rename rule react/no-find-dom-node to react-dom/no-find-dom-node
  • Rename rule react/no-missing-button-type to react-dom/no-missing-button-type
  • Rename rule react/no-missing-iframe-sandbox to react-dom/no-missing-iframe-sandbox
  • Rename rule react/no-namespace to react-dom/no-namespace
  • Rename rule react/no-script-url to react-dom/no-script-url
  • Rename rule react/no-unsafe-iframe-sandbox to react-dom/no-unsafe-iframe-sandbox
  • Rename rule react/no-unsafe-target-blank to react-dom/no-unsafe-target-blank

✨ New

  • Make dom an alias of react-dom preset
  • Make hooks an alias of react-hooks preset
  • Add preset jsx and jsx-legacy
  • Add preset react-dom and dom-legacy
  • Add preset core and core-legacy
  • Add preset react-hooks and hooks-legacy

🐞 Fixes

  • Fix the lint message for rule react-dom/no-dangerously-set-innerhtml

Don't miss a new eslint-react release

NewReleases is sending notifications on new releases.