mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
19 lines
414 B
JavaScript
19 lines
414 B
JavaScript
/**
|
|
* 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 },
|
|
},
|
|
|
|
}
|