I have this error in my js files:
Fragments are only supported starting from React v16.2. Please disable thereact/jsx-fragmentsrule in ESLint settings or upgrade your version of React.
module.exports = {
root: true,
rules: {
'react/prop-types': 0,
'react/jsx-filename-extension': 0,
'react/jsx-max-depth': 0,
'react/no-multi-comp': 0,
// 'react/jsx-indent': 0,
'react/jsx-one-expression-per-line': 0,
'react/jsx-curly-brace-presence': 0,
'react/no-set-state': 0,
'react/jsx-max-props-per-line': 0,
'react/forbid-component-props': 0,
// 'jsx-a11y/anchor-is-valid': 0
},
extends: [
'eslint:recommended',
'react-app',
'plugin:react/all',
'standard',
'standard-react'
]
}
"dependencies": {
"bootstrap": "4.3.1",
"lodash": "4.17.11",
"node-sass": "4.11.0",
"react": "16.8.3",
"react-dom": "16.8.3",
"react-router-dom": "4.3.1",
"react-scripts": "2.1.3",
"recompose": "0.30.0"
},
"eslintConfig": {
"extends": "react-app"
},
"devDependencies": {
"eslint-config-standard": "12.0.0",
"eslint-config-standard-react": "7.0.2",
"eslint-plugin-cypress": "2.2.1",
"eslint-plugin-import": "2.16.0",
"eslint-plugin-node": "8.0.1",
"eslint-plugin-promise": "4.0.1",
"eslint-plugin-react": "7.12.4",
"eslint-plugin-standard": "4.0.0",
"standard": "12.0.1",
}
Where am I wrong?
See https://github.com/yannickcr/eslint-plugin-react#configuration - specify a react version of “detect” in settings in your eslintrc.
Most helpful comment
See https://github.com/yannickcr/eslint-plugin-react#configuration - specify a react version of “detect” in settings in your eslintrc.