Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Commit

Permalink
.eslintrc.js node .js import resolver to fix webstorm eslint error (#71)
Browse files Browse the repository at this point in the history
* .eslintrc.js node .ts, .tsx, .jsx import resolver to fix webstorm eslint error
  • Loading branch information
Austin Rivas committed Apr 6, 2020
1 parent 175e3c3 commit 4edc607
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ module.exports = {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
'import/resolver': {
node: {
extensions: ['.js', '.ts', '.tsx', '.jsx'] // webstorm IDE cannot resolve the webpack.babel.prod.js module correctly without this
},
webpack: {
config: './internals/webpack/webpack.prod.babel.js',
},
Expand Down

0 comments on commit 4edc607

Please sign in to comment.