Skip to content

Commit 9da3cba

Browse files
committed
look first in npm/.bin for eslint
1 parent ec1b501 commit 9da3cba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Support/validate.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,11 @@ def validate(quiet=False):
123123
path_parts.append('/usr/bin')
124124
if '/usr/local/bin' not in path_parts:
125125
path_parts.append('/usr/local/bin')
126+
if os.environ.get('TM_PROJECT_DIRECTORY', None) is not None:
127+
npm_bin = os.path.join(os.environ.get('TM_PROJECT_DIRECTORY'), 'node_modules', '.bin')
128+
path_parts.insert(0, npm_bin)
126129
env['PATH'] = ':'.join(path_parts)
130+
127131

128132
try:
129133
eslint = subprocess.Popen(

0 commit comments

Comments
 (0)