Skip to content

Commit

Permalink
ESLint Plugin: Include .jsx extenstion when linting import statements
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Jul 29, 2021
1 parent f0b55c2 commit eff7ecd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/eslint-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions packages/eslint-plugin/configs/recommended-with-formatting.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ module.exports = {
document: true,
wp: 'readonly',
},
settings: {
'import/resolver': {
node: {
extensions: [ '.js', '.jsx' ],
},
},
},
rules: {
'import/no-extraneous-dependencies': [
'error',
Expand Down

0 comments on commit eff7ecd

Please sign in to comment.