Skip to content

Commit

Permalink
Stylelint linter output stream can go to stderr (#4702)
Browse files Browse the repository at this point in the history
Since [version 13.6.0](https://github.com/stylelint/stylelint/blob/804bb24c75248aba55b009994e4bfb561593a990/CHANGELOG.md?plain=1#L654),
following [PR 4799](stylelint/stylelint#4799)
`stylelint` errors are sent to `stderr`. Previous versions where sending
errors to `stdout`.
  • Loading branch information
iplog authored Jan 14, 2024
1 parent 562680e commit 32e6fc5
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions ale_linters/css/stylelint.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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',
\ ])},
Expand Down
1 change: 1 addition & 0 deletions ale_linters/html/stylelint.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions ale_linters/less/stylelint.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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',
\ ])},
Expand Down
1 change: 1 addition & 0 deletions ale_linters/sass/stylelint.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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',
\ ])},
Expand Down
1 change: 1 addition & 0 deletions ale_linters/scss/stylelint.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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',
\ ])},
Expand Down
1 change: 1 addition & 0 deletions ale_linters/stylus/stylelint.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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',
\ ])},
Expand Down
1 change: 1 addition & 0 deletions ale_linters/sugarss/stylelint.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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',
\ ])},
Expand Down

0 comments on commit 32e6fc5

Please sign in to comment.