-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
/
test.js.snap
83 lines (82 loc) · 2.22 KB
/
test.js.snap
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`it should produce the expected lint ouput 1`] = `
Array [
Object {
"errorCount": 1,
"fatalErrorCount": 0,
"filePath": "/usr/linked/index.ts",
"fixableErrorCount": 1,
"fixableWarningCount": 0,
"messages": Array [
Object {
"column": 1,
"endColumn": 21,
"endLine": 1,
"fix": Object {
"range": Array [
0,
3,
],
"text": "let",
},
"line": 1,
"message": "Unexpected var, use let or const instead.",
"messageId": "unexpectedVar",
"nodeType": "VariableDeclaration",
"ruleId": "no-var",
"severity": 2,
},
Object {
"column": 5,
"endColumn": 13,
"endLine": 1,
"line": 1,
"message": "'foo' is assigned a value but never used.",
"messageId": "unusedVar",
"nodeType": "Identifier",
"ruleId": "@typescript-eslint/no-unused-vars",
"severity": 1,
},
Object {
"column": 10,
"endColumn": 13,
"endLine": 1,
"line": 1,
"message": "Unexpected any. Specify a different type.",
"messageId": "unexpectedAny",
"nodeType": "TSAnyKeyword",
"ruleId": "@typescript-eslint/no-explicit-any",
"severity": 1,
"suggestions": Array [
Object {
"desc": "Use \`unknown\` instead, this will force you to explicitly, and safely assert the type is correct.",
"fix": Object {
"range": Array [
9,
12,
],
"text": "unknown",
},
"messageId": "suggestUnknown",
},
Object {
"desc": "Use \`never\` instead, this is useful when instantiating generic type parameters that you don't need to know the type of.",
"fix": Object {
"range": Array [
9,
12,
],
"text": "never",
},
"messageId": "suggestNever",
},
],
},
],
"source": "var foo: any = true;
",
"usedDeprecatedRules": Array [],
"warningCount": 2,
},
]
`;