diff --git a/packages/eslint-plugin/CHANGELOG.md b/packages/eslint-plugin/CHANGELOG.md index ad7c34feff655d..f51cbf7120e37f 100644 --- a/packages/eslint-plugin/CHANGELOG.md +++ b/packages/eslint-plugin/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### Bug Fix + +- Include `.jsx` extension when linting import statements in case TypeScript not present ([#33746](https://github.com/WordPress/gutenberg/pull/33746)). + ## 9.1.0 (2021-07-21) ### Enhancement diff --git a/packages/eslint-plugin/configs/react.js b/packages/eslint-plugin/configs/react.js index c86f1ec718a1c8..1f0add55d4473e 100644 --- a/packages/eslint-plugin/configs/react.js +++ b/packages/eslint-plugin/configs/react.js @@ -5,6 +5,9 @@ module.exports = { jsx: true, }, }, + settings: { + 'import/extensions': [ '.js', '.jsx' ], + }, plugins: [ '@wordpress', 'react', 'react-hooks' ], rules: { '@wordpress/no-unused-vars-before-return': [