X Tutup
Skip to content

Implement a better lookup for ESLint and NodeJS executables in general #320

@itaranto

Description

@itaranto

Right now for ESLint, it checks the following dirs:

  • node_modules/.bin/eslint
  • ~/.npm-global/bin/eslint
  • /usr/local/bin/eslint'

But it doesn't check if the executable is in the PATH variable at all.
My suggestion would be to check if the executable is in PATH, or at least if can be executed as it is, i.e. eslint.

In my case eslint doesn't work because I configured NodeJS to use more standard places like ~/.local/lib and ~/.local/bin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup