microsoft / vscode-jshint

VSCode extension to integrate jshint into VSCode
https://marketplace.visualstudio.com/items?itemName=dbaeumer.jshint
MIT License
72 stars 48 forks source link

Configure/disable JSHint per-folder in a multi-root workspace #69

Open dawsonc623 opened 5 years ago

dawsonc623 commented 5 years ago

Currently, it looks like JSHint can only be configured for an entire workspace. I have a workspace with three roots: two of them use JSHint while the third uses ESLint. It would be handy to be able to configure/disable JSHint at the folder level as well as the workspace level.

A solution to #39 might be able to cover this use-case if implemented with this in mind.

RMacfarlane commented 5 years ago

Hey @dawsonc623, this should already be possible: https://code.visualstudio.com/docs/editor/multi-root-workspaces#_settings

You should be able to set different values of jshint.enabled for each folder from the settings UI, or by adding a .vscode folder in each with a settings.json file that has that value.

dawsonc623 commented 5 years ago

@RMacfarlane Thanks for the response. The jshint.enabled option is not available at the folder-level. Just the User and Workspace levels. The only jshint option available for folders is jshint.packageManager.