Skip to content

Unknown property allowTransparency found (react/no-unknown-property) #3489

@frixaco

Description

@frixaco

Hi and thank you for the work on the plugin!

I'm getting this error when I try to lint the following code:

import './App.css'

function App(): JSX.Element {
  return (
    <div className="App">
      <iframe allowTransparency />
    </div>
  )
}

export default App

Any ideas why this is happening? Looking at source code, it seems like allowTransparency is a valid property.

Reproduction: https://codesandbox.io/s/react-check-eslint-5utwqm?file=/src/App.tsx

eslint-plugin-react: 7.31.10
ESLint: v7.32.0
React: v18 and v16.13.0

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions