You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 3 година
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. }