From 32e6fc5975aacd83ae15958b52311b08a094883a Mon Sep 17 00:00:00 2001 From: Nicolas Blanchot Date: Sun, 14 Jan 2024 12:43:31 +0100 Subject: [PATCH] Stylelint linter output stream can go to stderr (#4702) Since [version 13.6.0](https://github.com/stylelint/stylelint/blob/804bb24c75248aba55b009994e4bfb561593a990/CHANGELOG.md?plain=1#L654), following [PR 4799](https://github.com/stylelint/stylelint/pull/4799) `stylelint` errors are sent to `stderr`. Previous versions where sending errors to `stdout`. --- ale_linters/css/stylelint.vim | 1 + ale_linters/html/stylelint.vim | 1 + ale_linters/less/stylelint.vim | 1 + ale_linters/sass/stylelint.vim | 1 + ale_linters/scss/stylelint.vim | 1 + ale_linters/stylus/stylelint.vim | 1 + ale_linters/sugarss/stylelint.vim | 1 + 7 files changed, 7 insertions(+) diff --git a/ale_linters/css/stylelint.vim b/ale_linters/css/stylelint.vim index e508f392..ceb42461 100644 --- a/ale_linters/css/stylelint.vim +++ b/ale_linters/css/stylelint.vim @@ -11,6 +11,7 @@ endfunction call ale#linter#Define('css', { \ 'name': 'stylelint', +\ 'output_stream': 'both', \ 'executable': {b -> ale#path#FindExecutable(b, 'css_stylelint', [ \ 'node_modules/.bin/stylelint', \ ])}, diff --git a/ale_linters/html/stylelint.vim b/ale_linters/html/stylelint.vim index 6b7aba40..c191c468 100644 --- a/ale_linters/html/stylelint.vim +++ b/ale_linters/html/stylelint.vim @@ -21,6 +21,7 @@ endfunction call ale#linter#Define('html', { \ 'name': 'stylelint', +\ 'output_stream': 'both', \ 'executable': function('ale_linters#html#stylelint#GetExecutable'), \ 'command': function('ale_linters#html#stylelint#GetCommand'), \ 'callback': 'ale#handlers#css#HandleStyleLintFormat', diff --git a/ale_linters/less/stylelint.vim b/ale_linters/less/stylelint.vim index 83f784c4..9430fe9b 100644 --- a/ale_linters/less/stylelint.vim +++ b/ale_linters/less/stylelint.vim @@ -12,6 +12,7 @@ endfunction call ale#linter#Define('less', { \ 'name': 'stylelint', +\ 'output_stream': 'both', \ 'executable': {b -> ale#path#FindExecutable(b, 'less_stylelint', [ \ 'node_modules/.bin/stylelint', \ ])}, diff --git a/ale_linters/sass/stylelint.vim b/ale_linters/sass/stylelint.vim index 22abef9b..651d7fd5 100644 --- a/ale_linters/sass/stylelint.vim +++ b/ale_linters/sass/stylelint.vim @@ -5,6 +5,7 @@ call ale#Set('sass_stylelint_use_global', get(g:, 'ale_use_global_executables', call ale#linter#Define('sass', { \ 'name': 'stylelint', +\ 'output_stream': 'both', \ 'executable': {b -> ale#path#FindExecutable(b, 'sass_stylelint', [ \ 'node_modules/.bin/stylelint', \ ])}, diff --git a/ale_linters/scss/stylelint.vim b/ale_linters/scss/stylelint.vim index fea4ea8f..4f82a98a 100644 --- a/ale_linters/scss/stylelint.vim +++ b/ale_linters/scss/stylelint.vim @@ -11,6 +11,7 @@ endfunction call ale#linter#Define('scss', { \ 'name': 'stylelint', +\ 'output_stream': 'both', \ 'executable': {b -> ale#path#FindExecutable(b, 'scss_stylelint', [ \ 'node_modules/.bin/stylelint', \ ])}, diff --git a/ale_linters/stylus/stylelint.vim b/ale_linters/stylus/stylelint.vim index b60e38ed..652e15d2 100644 --- a/ale_linters/stylus/stylelint.vim +++ b/ale_linters/stylus/stylelint.vim @@ -12,6 +12,7 @@ endfunction call ale#linter#Define('stylus', { \ 'name': 'stylelint', +\ 'output_stream': 'both', \ 'executable': {b -> ale#path#FindExecutable(b, 'stylus_stylelint', [ \ 'node_modules/.bin/stylelint', \ ])}, diff --git a/ale_linters/sugarss/stylelint.vim b/ale_linters/sugarss/stylelint.vim index 879ff0ca..a12191b8 100644 --- a/ale_linters/sugarss/stylelint.vim +++ b/ale_linters/sugarss/stylelint.vim @@ -13,6 +13,7 @@ endfunction call ale#linter#Define('sugarss', { \ 'name': 'stylelint', +\ 'output_stream': 'both', \ 'executable': {b -> ale#path#FindExecutable(b, 'sugarss_stylelint', [ \ 'node_modules/.bin/stylelint', \ ])},