Replies: 3 comments 4 replies
-
Okay turns out this works, but is not a good idea (yet) When a TS file is open(!), Eslint service will try to connect & starts web containers, interfering with In the meantime I switched to local node again More info: https://discord.com/channels/664580571770388500/1161952380062011422 Hi @nico-loeber, I just had one question regarding this - what is does this automatic configuration "nodejs interpreter" mean? And what settings should I see in NodeJS interpreter settings? Or is there an override? thanks for providing the ddev plugin! |
Beta Was this translation helpful? Give feedback.
-
Hey @mandrasch, You can check if you make it to configure PHPStorm to use the ddev container for eslint manually. If this works, we can then do this configuration automatically by the plugin. |
Beta Was this translation helpful? Give feedback.
-
hey guys, i figured out something that may help others too: make Node and phpstorm work together (though I'm not sure how it plays with eslint, but it worth a try) some while ago i was very confused about how should phpstorm be configured in order to have node inside docker. unfortunately, phpstorm is kind of limited in this regards (i.e. doesn't allow to reuse a container, but only to start it) and (probably) it will take some years to have it fixed. so here is a little workaround: add a new node remote interpreter with node:18-alpine as image name (or whatever version you need). this won't use the ddev version but it will use a docker container. with a bit of a trickery, you could use ddev npm for managing packages and this remote interpreter for... stuff. it took me a while to figure out that this is possible, i'm sure it may have some limitations, but for what i need it is good enough. discussion also started here |
Beta Was this translation helpful? Give feedback.
-
Hey,
just wanted to ask if eslint fully works via this (awesome) integration plugin in PhpStorm?
As far as I understand it runs via the NodeJS interpreter
https://www.jetbrains.com/help/phpstorm/eslint.html#ws_node_docker_lint
I see this:
But also get this, since I'm using colima:
#83 (Don't know if this is related)
Config:
I'm running on
Thanks very much for information and thanks very much for providing this plugin!
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions