Skip to content

Instantly share code, notes, and snippets.

@Morantron
Created September 1, 2015 10:56
Show Gist options
  • Save Morantron/e95d5f8d2740bfea4d8d to your computer and use it in GitHub Desktop.
Save Morantron/e95d5f8d2740bfea4d8d to your computer and use it in GitHub Desktop.
Trick Syntastic to use local eslint
#!/bin/bash
# place this script in your path, with filename "eslint"
if [[ -f ./node_modules/eslint/bin/eslint.js ]]; then
./node_modules/eslint/bin/eslint.js $*
else
echo "No eslint found in this folder!"
exit 1
fi
@masylum
Copy link

masylum commented Sep 1, 2015

Le proxy

@andresgutgon
Copy link

You're the man

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment