Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

Latest commit

 

History

History
22 lines (17 loc) · 407 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 407 Bytes

JsHintValidator

Executes JSHint from .NET.

How to use it? Best illustrated through a test:

[Test]
public void CanValidateValidScript()
{
    // Arrange
    var script = "var answer = 42;";
    var validator = new JsHintValidator();

    // Act
    var result = validator.Validate(script, new Options());

    // Assert
    Assert.That(result.Errors.Count, Is.EqualTo(0));
}