react.js 415 B

123456789101112131415161718
  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'],
  11. },
  12. parserOptions: {
  13. ecmaFeatures: { jsx: true },
  14. },
  15. };