mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Use JSON output for eslint and fix tsserver column
This commit is contained in:
@@ -219,7 +219,7 @@ Execute(ale#lsp#response#ReadTSServerDiagnostics() should handle tsserver respon
|
||||
\ 'lnum': 1,
|
||||
\ 'col': 11,
|
||||
\ 'end_lnum': 1,
|
||||
\ 'end_col': 17,
|
||||
\ 'end_col': 16,
|
||||
\ },
|
||||
\ ],
|
||||
\ ale#lsp#response#ReadTSServerDiagnostics({"seq":0,"type":"event","event":"semanticDiag","body":{"file":"/bar/foo.ts","diagnostics":[{"start":{"line":1,"offset":11},"end":{"line":1,"offset":17},"text":"Operator ''+'' cannot be applied to types ''3'' and ''{}''.","code":2365}]}})
|
||||
@@ -234,7 +234,7 @@ Execute(ale#lsp#response#ReadTSServerDiagnostics() should handle warnings from t
|
||||
\ 'code': '2515',
|
||||
\ 'end_lnum': 27,
|
||||
\ 'type': 'W',
|
||||
\ 'end_col': 14,
|
||||
\ 'end_col': 13,
|
||||
\ 'text': 'Calls to ''console.log'' are not allowed. (no-console)',
|
||||
\ }
|
||||
\ ],
|
||||
@@ -250,7 +250,7 @@ Execute(ale#lsp#response#ReadTSServerDiagnostics() should handle suggestions fro
|
||||
\ 'code': '2515',
|
||||
\ 'end_lnum': 27,
|
||||
\ 'type': 'I',
|
||||
\ 'end_col': 14,
|
||||
\ 'end_col': 13,
|
||||
\ 'text': 'Some info',
|
||||
\ }
|
||||
\ ],
|
||||
|
||||
Reference in New Issue
Block a user