Skip to content
Advertisement

Tag: lint

Eslint glob (**) is not considering all directories recursively

I am using OSX, in my package.json file I have the script entry: “lint”: “eslint ./src/**/*.js” However, when I run npm lint only the 1st level of directories are being considered for linting, eg. ./src/dir/* not ./src/dir/nested_dir/*. I was under the impression that ** glob indicated recursive search? Does anyone know how I can make this behave as expected? Answer

How to do JSLint in Vim

I spend my days in vim, currently writing a lot of JavaScript. I’ve been trying to find a way to integrate JSLint or something similar into vim to improve my coding. Has anyone managed to do something like this? I tried this: Javascript Syntax Checking From Vim, unfortunately the output is very crude. Answer You can follow the intructions from

Advertisement