resolve-eslint
v1.0.3
Published
Try to execute a local bin eslint before to execute the global
Downloads
16
Readme
resolve-eslint
Try to execute a local bin eslint before executing a global fallback eslint.
Sections | --- | Why | Install |
Why
I have several projects using different eslints' versions and when I run syntastic + eslint in my vim it's always trying to run my global configuration. So my first issue is that I want a CLI that will check if I have an eslint in the current working directory.
Other issue is that I have a project with subprojects using different eslint versions and searching an eslint bin in my current working directory is not enough.
resolve-eslint
try to find an eslint in the directory of your current file, if is not there is going to start a recursive searching for a eslint instance and finally as a fallback is going to use an eslint bin provided by resolve-eslint
.
Install
It's important that you don't have eslint installed as a global package.
npm install -g resolve-eslint
License
MIT