mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-09 13:02:28 +08:00
Fix #668 - Support eslint for TypeScript
This commit is contained in:
@@ -106,3 +106,22 @@ Execute (The local alias option shouldn't completely replace the global one):
|
||||
|
||||
Execute (Linters should be loaded from disk appropriately):
|
||||
AssertEqual [{'name': 'testlinter', 'output_stream': 'stdout', 'executable': 'testlinter', 'command': 'testlinter', 'callback': 'testCB', 'read_buffer': 1, 'lint_file': 0, 'aliases': [], 'lsp': ''}], ale#linter#Get('testft')
|
||||
|
||||
|
||||
Execute (Linters for later filetypes should replace the former ones):
|
||||
call ale#linter#Define('javascript', {
|
||||
\ 'name': 'eslint',
|
||||
\ 'executable': 'y',
|
||||
\ 'command': 'y',
|
||||
\ 'callback': 'y',
|
||||
\})
|
||||
call ale#linter#Define('typescript', {
|
||||
\ 'name': 'eslint',
|
||||
\ 'executable': 'x',
|
||||
\ 'command': 'x',
|
||||
\ 'callback': 'x',
|
||||
\})
|
||||
|
||||
AssertEqual [
|
||||
\ {'output_stream': 'stdout', 'lint_file': 0, 'read_buffer': 1, 'name': 'eslint', 'executable': 'x', 'lsp': '', 'aliases': [], 'command': 'x', 'callback': 'x'}
|
||||
\], ale#linter#Get('javascript.typescript')
|
||||
|
||||
Reference in New Issue
Block a user