react.js 475 B

12345678910111213141516171819
  1. /**
  2. * Adds `.jsx` as an extension, and enables JSX parsing.
  3. *
  4. * Even if _you_ aren't using JSX (or .jsx) directly, if your dependencies
  5. * define jsnext:main and have JSX internally, you may run into problems
  6. * if you don't enable these settings at the top level.
  7. */
  8. module.exports = {
  9. settings: {
  10. 'import/extensions': ['.js', '.jsx', '.mjs', '.cjs'],
  11. },
  12. languageOptions: {
  13. parserOptions: {
  14. ecmaFeatures: {
  15. jsx: true,
  16. },
  17. },
  18. },
  19. };