mohkale / flymake-collection

Collection of checkers for flymake
MIT License
68 stars 13 forks source link

Feature: support for npx command in node_module/.bin ? #36

Closed liuyinz closed 4 months ago

liuyinz commented 6 months ago

in the :pre-let and :pre-check section, would it be possible to run in the project directory and check if npx command like npx eslint or npx oxlint exists and calling ? I guess these command usually installed locally in project.

mohkale commented 6 months ago

I see no harm in adding a executable-find npx check within any npm based linters and running through that if it exists. I assume npx will use the node_modules folder for the current project if the package is not installed and otherwise have some flag to fail (instead of trying to install the checker) :thinking:.

mohkale commented 4 months ago

Closing. As discussed https://github.com/mohkale/flymake-collection/pull/39#discussion_r1650160584 this should be a more general solution than something in this package.