JSX not allowed in files with extension '.js'

JavaScript
"rules": {
  "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
}JSX not Allowed in JS
Source

Also in JavaScript: