summaryrefslogtreecommitdiff
path: root/cli/tests/lint/expected_json.out
blob: 20dd47d8c5daa2ad7bf4900e94973914f7607506 (plain)
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
{
  "diagnostics": [
    {
      "range": {
        "start": {
          "line": 1,
          "col": 0,
          "bytePos": 0
        },
        "end": {
          "line": 1,
          "col": 19,
          "bytePos": 19
        }
      },
      "filename": "[WILDCARD]file1.js",
      "message": "Ignore directive requires lint rule name(s)",
      "code": "ban-untagged-ignore",
      "hint": [WILDCARD]
    },
    {
      "range": {
        "start": {
          "line": 2,
          "col": 14,
          "bytePos": 34
        },
        "end": {
          "line": 2,
          "col": 16,
          "bytePos": 36
        }
      },
      "filename": "[WILDCARD]file1.js",
      "message": "Empty block statement",
      "code": "no-empty",
      "hint": null
    },
    {
      "range": {
        "start": {
          "line": 3,
          "col": 12,
          "bytePos": 56
        },
        "end": {
          "line": 3,
          "col": 14,
          "bytePos": 58
        }
      },
      "filename": "[WILDCARD]file2.ts",
      "message": "Empty block statement",
      "code": "no-empty",
      "hint": null
    }
  ],
  "errors": [
    {
      "file_path": "[WILDCARD]malformed.js",
      "message": "Expected }, got <eof> at [WILDCARD]malformed.js:4:15"
    }
  ]
}