Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 623 Bytes

eslint-plugin-react.mdx

File metadata and controls

15 lines (12 loc) · 623 Bytes
title
eslint-plugin-react

The react/no-unknown-property rule from eslint-plugin-react will produce an error if the css prop is passed to a DOM element. This violation of the rule can be safely ignored because @emotion/react intercepts the css prop before it is applied to the DOM element.

The rule can be configured to ignore the css prop like so:

{
  "rules": {
    "react/no-unknown-property": ["error", { "ignore": ["css"] }]
  }
}