🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

eslint-project-relative

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-project-relative

run the right eslint for your project from flycheck or syntastic

0.3.0
latest
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-project-relative

what, you want to run ESlint in your $EDITOR, but it keeps picking the wrong ESLint? Or you don't even have ESLint installed globally?

That sucks. That sucks a lot.

use eslint-project-relative instead. It will try to find the "right" eslint executable for the files you want to lint.

It does this by using node's own resolve algorothm based on the file arguments you pass to eslint-project-relative. If you don't pass any file args, we'll just use the present working directory instead.

After we find an eslint, we use POSIX exec to run it directly, passing through all arguments, etc

usage

first, install globally.

npm install -g eslint-project-relative

Then, configure editor:

syntastic (vim)

let g:syntastic_javascript_eslint_exec = 'eslint-project-relative'

flycheck (emacs)

(setq flycheck-javascript-eslint-executable "eslint-project-relative")

other editors

PRS WELCOME!!!!1 update my readme pls.

Keywords

eslint

FAQs

Package last updated on 06 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts