forked from palantir/tslint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.ts.lint
33 lines (24 loc) · 856 Bytes
/
test.ts.lint
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
if (false) {
// @ts-ignore: Unreachable code error
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [Do not use "// @ts-ignore" comments because they suppress compilation errors.]
console.log("hello"); // Random comments.
}
var x = 0;
/// @ts-ignore Triple-slash
~~~~~~~~~~~~~~~~~~~~~~~~~~~ [Do not use "// @ts-ignore" comments because they suppress compilation errors.]
x();
/// @ts-ignore
~~~~~~~~~~~~~~ [Do not use "// @ts-ignore" comments because they suppress compilation errors.]
x(
2,
3);
// come comment
// @ts-ignore Multiple comments
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [Do not use "// @ts-ignore" comments because they suppress compilation errors.]
// some other comment
// @anohter
x();
x( // @ts-ignore inline
~~~~~~~~~~~~~~~~~~~~ [Do not use "// @ts-ignore" comments because they suppress compilation errors.]
2,
3);