I have a project with frontend written in React. Convention in the project is that we use .jsx files for files where we actually have a component and .js for others (containg enums or some helper methods).
However, I am having some problem with intelliJ not recognizing .js files as a part of React app. If in .jsx file I use method from .js file, it doesn't get autoimported and I need to import manually. If it's method from .jsx everything works like a charm.
I belive associating all .js files inside the directory of my frontend as a TypeScript JSX should do the job?
I tried to add pattern like '*js/app/*.js' but it doesn't work (my frontend app scripts lies under /js/app/)
I'd appreciate any help, thanks in advance! :)