You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just migrated to @antfu/eslint-config and I am really excited about it.
But I noticed that in IntelliJ IDEA the isInEditorEnv is returning false during auto fix on save.
It seems that there is no such env variable "JETBRAINS_IDE". At least in the latest version: IntelliJ IDEA 2024.3.1.1 (Ultimate Edition) Build #IU-243.22562.218, built on December 18, 2024
Or is there something I need to activate first?
I also didn't find a way to pass this env variable to the eslint command. it is only possible to add extra eslint options.
I will try to find a workaround (it seems that when eslint is executed by the IDE the env variables "COLORTERM", "DEBUG_COLORS", "FORCE_COLOR", "MOCHA_COLORS", "npm_config_color" are set, but I don't know how reliable that is on other machines).
If you have any tips on how to detect eslint is executed by IntelliJ IDEA I would love to hear them.
Describe the bug
I just migrated to @antfu/eslint-config and I am really excited about it.
But I noticed that in IntelliJ IDEA the
isInEditorEnv
is returningfalse
during auto fix on save.It seems that there is no such env variable "JETBRAINS_IDE". At least in the latest version: IntelliJ IDEA 2024.3.1.1 (Ultimate Edition) Build #IU-243.22562.218, built on December 18, 2024
Or is there something I need to activate first?
I also didn't find a way to pass this env variable to the eslint command. it is only possible to add extra eslint options.
I will try to find a workaround (it seems that when eslint is executed by the IDE the env variables "COLORTERM", "DEBUG_COLORS", "FORCE_COLOR", "MOCHA_COLORS", "npm_config_color" are set, but I don't know how reliable that is on other machines).
If you have any tips on how to detect eslint is executed by IntelliJ IDEA I would love to hear them.
Reproduction
//node
System Info
Used Package Manager
npm
Validations
Contributions
The text was updated successfully, but these errors were encountered: