tern.java
tern.java copied to clipboard
Project re-validation should be triggered when changing one of the configuration elements of a linter
Take this example:
- Have a simple project
- Convert it to Tern Project
- Enable JsHint validation (at this point, tern.java offers to make a validation since Validation Settings have changed, which is good)
- Open preferences and make a change in one of the JsHint flags (let's say bitwise), then apply the changes.
- At this point, Validation Settings have changed, but since no linter has been added or removed from tern project, the onLintersChanged event is not fired, then the re-validation is not offered as it should.
@orlandoibm I agree with you. It should be very cool to do that when you update and save the .jshintrc.
@angelozerr I actually was thinking about the case when you use a "config object" directly in .tern-project instead .jshintrc file, but certainly supporting both cases would be great.
@orlandoibm I have fixed the problem. For your information, you can update the .tern-project from the editor. See the following demo:

@angelozerr Nice !
@jabby glaid it please you:)
Next step is to do the sam ething when .jshintrc is updated. I thinj it's a cool feature when you want to check quickly your jshint config.