(moved from oxc-project/oxc#16994 (comment), as it's already possible in VSCode)
It would be nice to be able to configure the used node version / binary path for oxlint / oxfmt execution inside IntelliJ.
Background
In our project, we are bound to an LTS node version; that is the version we deploy with. We're in the process of adding a second "edge" node version for development tooling like linter / formatter. Mainly due to the new node requirement for newer oxlint / oxfmt versions. But we think it's a good idea to have the two node versions decoupled in general, to not lack behind on future dev tooling features.
Thus, we want to use the LTS node for tests and simulation, while using the edge node for linting / formatting / building.
Our directory structure will look like this:
/package.json // engine: edge
/.oxlintrc.json
/.oxfmt.jsonc
/app/package.json // engine: LTS
/app/tsconfig.json
/app/src/...
We manage different node versions with n.
This way, using oxlint / oxfmt works perfectly via cli. But the IntelliJ Project node.js version currently needs to be set to the edge version, which is "wrong" as it's used for node language assistance as well (w/o any way to specify another version for that). It would be preferable to have the "main" IDE project engine set to LTS node and configure edge version for the tools that are supposed to use it. Esp. oxlint / oxfmt.
🎄
(moved from oxc-project/oxc#16994 (comment), as it's already possible in VSCode)
It would be nice to be able to configure the used node version / binary path for oxlint / oxfmt execution inside IntelliJ.
Background
In our project, we are bound to an LTS node version; that is the version we deploy with. We're in the process of adding a second "edge" node version for development tooling like linter / formatter. Mainly due to the new node requirement for newer oxlint / oxfmt versions. But we think it's a good idea to have the two node versions decoupled in general, to not lack behind on future dev tooling features.
Thus, we want to use the LTS node for tests and simulation, while using the edge node for linting / formatting / building.
Our directory structure will look like this:
We manage different node versions with n.
This way, using oxlint / oxfmt works perfectly via cli. But the IntelliJ Project node.js version currently needs to be set to the edge version, which is "wrong" as it's used for node language assistance as well (w/o any way to specify another version for that). It would be preferable to have the "main" IDE project engine set to LTS node and configure edge version for the tools that are supposed to use it. Esp. oxlint / oxfmt.
🎄