From 7943bfab96ea1ecc169e815f75062cc127192ed8 Mon Sep 17 00:00:00 2001 From: w0rp Date: Sun, 12 May 2019 15:49:16 +0100 Subject: Make eslint respect the ale_warn_about_trailing_whitespace setting --- autoload/ale/handlers/eslint.vim | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'autoload') diff --git a/autoload/ale/handlers/eslint.vim b/autoload/ale/handlers/eslint.vim index bc7c0321..5183f4cd 100644 --- a/autoload/ale/handlers/eslint.vim +++ b/autoload/ale/handlers/eslint.vim @@ -143,6 +143,11 @@ function! ale#handlers#eslint#Handle(buffer, lines) abort " The code can be something like 'Error/foo/bar', or just 'Error' if !empty(get(l:split_code, 1)) let l:obj.code = join(l:split_code[1:], '/') + + if l:obj.code is# 'no-trailing-spaces' + \&& !ale#Var(a:buffer, 'warn_about_trailing_whitespace') + continue + endif endif for l:col_match in ale#util#GetMatches(l:text, s:col_end_patterns) -- cgit v1.2.3