Configuration for rule "react/jsx-filename-extension" is invalid: code example
Example 1: JSX not allowed in files with extension '.js'
"rules": {
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
}
Example 2: how to fix eslint jsx not allowed in js
JSX not Allowed in JS