-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
/
eslint-v7.test.ts.snap
53 lines (52 loc) · 1.38 KB
/
eslint-v7.test.ts.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
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`eslint-v7 should lint successfully 1`] = `
[
{
"errorCount": 1,
"filePath": "<root>/index.ts",
"fixableErrorCount": 0,
"fixableWarningCount": 0,
"messages": [
{
"column": 15,
"endColumn": 18,
"endLine": 1,
"line": 1,
"message": "Unexpected any. Specify a different type.",
"messageId": "unexpectedAny",
"nodeType": "TSAnyKeyword",
"ruleId": "@typescript-eslint/no-explicit-any",
"severity": 2,
"suggestions": [
{
"desc": "Use \`unknown\` instead, this will force you to explicitly, and safely assert the type is correct.",
"fix": {
"range": [
14,
17,
],
"text": "unknown",
},
"messageId": "suggestUnknown",
},
{
"desc": "Use \`never\` instead, this is useful when instantiating generic type parameters that you don't need to know the type of.",
"fix": {
"range": [
14,
17,
],
"text": "never",
},
"messageId": "suggestNever",
},
],
},
],
"source": "const noSemi: any = true;
",
"usedDeprecatedRules": [],
"warningCount": 0,
},
]
`;