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.
18 lines
414 B
18 lines
414 B
/**
|
|
* Adds `.jsx` as an extension, and enables JSX parsing.
|
|
*
|
|
* Even if _you_ aren't using JSX (or .jsx) directly, if your dependencies
|
|
* define jsnext:main and have JSX internally, you may run into problems
|
|
* if you don't enable these settings at the top level.
|
|
*/
|
|
module.exports = {
|
|
|
|
settings: {
|
|
'import/extensions': ['.js', '.jsx'],
|
|
},
|
|
|
|
parserOptions: {
|
|
ecmaFeatures: { jsx: true },
|
|
},
|
|
|
|
}
|
|
|