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 */ 8module.exports = { 9 10 settings: { 11 'import/extensions': ['.js', '.jsx'], 12 }, 13 14 parserOptions: { 15 ecmaFeatures: { jsx: true }, 16 }, 17 18}; 19 20