Files
ale/test
Kevin Locke 106c27644b eslint: Use cwd from executable location to fix nested projects (#3222)
* Split FindNearestExecutable from FindExecutable

The path searching in ale#node#FindExecutable() will be useful for
eslint.  Refactor it into a separate function so it can be used without
regard for the state of the _use_global and _executable variables.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>

* eslint: Set project root from local executable

Using the nearest directory with node_modules does not work correctly
for nested projects where the eslint dependencies are in the outer
project.  For example:
https://github.com/dense-analysis/ale/issues/3143#issuecomment-652452362

Adopt the behavior of SublimeLinter, which runs from project_root
determined by the presence of the eslint executable in node_modules/.bin
(or eslint in dependencies/devDependencies of package.json, which we can
add later as necessary).  See [NodeLinter#find_local_executable].

[NodeLinter#find_local_executable]: https://github.com/SublimeLinter/SublimeLinter/blob/056e6f6/lint/base_linter/node_linter.py#L109

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2020-07-08 14:42:01 +01:00
..
2019-07-01 20:50:02 -04:00
2019-09-10 20:54:14 +01:00
2018-07-01 13:55:41 +01:00
2018-09-19 19:33:23 +01:00
2017-12-05 00:37:31 +09:00
2019-01-20 19:39:47 -06:00
2018-08-26 13:47:56 +02:00
2017-10-29 21:48:28 +01:00
2017-10-21 12:31:49 -05:00
2020-03-15 14:58:38 +08:00
2018-10-24 08:29:11 +09:00
2019-05-24 01:13:52 +01:00