mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-28 14:56:52 +08:00
Add a script for custom checks to enforce using the abort flag for functions and trailing whitespace, and fix existing issues.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
" Author: Prashanth Chandra https://github.com/prashcr
|
||||
" Description: tslint for TypeScript files
|
||||
|
||||
function! ale_linters#typescript#tslint#Handle(buffer, lines)
|
||||
function! ale_linters#typescript#tslint#Handle(buffer, lines) abort
|
||||
" Matches patterns like the following:
|
||||
"
|
||||
" hello.ts[7, 41]: trailing whitespace
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Author: Prashanth Chandra https://github.com/prashcr, Aleh Kashnikau https://github.com/mkusher
|
||||
" Description: type checker for TypeScript files
|
||||
|
||||
function! ale_linters#typescript#typecheck#Handle(buffer, lines)
|
||||
function! ale_linters#typescript#typecheck#Handle(buffer, lines) abort
|
||||
" Matches patterns like the following:
|
||||
"
|
||||
" hello.ts[7, 41]: Property 'a' does not exist on type 'A'
|
||||
|
||||
Reference in New Issue
Block a user