We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f92b78 commit 63db0e0Copy full SHA for 63db0e0
tests/com.eclipsesource.jshint.test/src/com/eclipsesource/jshint/JSHint_Compatibility_Test.java
@@ -196,6 +196,14 @@ public void positionIsCorrectWithMultipleTabs() {
196
assertEquals( "1.12", getPositionFromProblem( 0 ) );
197
}
198
199
+ @Test
200
+ public void toleratesWindowsLineBreaks() {
201
+ jsHint.configure( new Configuration().addOption( "white", false ) );
202
+ jsHint.check( "var x = 1;\r\nvar y = 2;\r\nvar z = 23 == null;", handler );
203
+
204
+ assertEquals( "3.11", getPositionFromProblem( 0 ) );
205
+ }
206
207
private void loadJsHint() throws IOException {
208
ClassLoader classLoader = getClass().getClassLoader();
209
InputStream stream = classLoader.getResourceAsStream( jsHintResource );
0 commit comments