I\'ve installed eslint-config-airbnb that is supposed to pre configure ESLINT for React:
Our default export contains all of our ESLint rules, includin
Either change your file extensions to .jsx as mentioned or disable the jsx-filename-extension rule. You can add the following to your config to allow .js extensions for JSX.
.jsx
.js
"rules": { "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }], }