After adding the file .jshintrcto the project root, you need to:
Right-click your project in the Project Explorer → properties → JSHint → Configuration → Enable validation.
Also select the folders containing your js files (use slashes in the path). I split the js files into two folders customand externaland checked only user ones (and all user subfolders).