File tree Expand file tree Collapse file tree 5 files changed +14
-14
lines changed
Expand file tree Collapse file tree 5 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ Execute(The stylelint callback should return the correct default values):
1717 \ 'cwd': '%s:h',
1818 \ 'command': (has('win32') ? 'node.exe ' : '')
1919 \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/eslint/react-app/node_modules/stylelint/bin/stylelint.js'))
20- \ . ' --fix --stdin --stdin-filename %s',
20+ \ . ' --fix --no-color -- stdin --stdin-filename %s',
2121 \ }
2222
2323Execute(The stylelint callback should include custom stylelint options):
@@ -30,5 +30,5 @@ Execute(The stylelint callback should include custom stylelint options):
3030 \ 'cwd': '%s:h',
3131 \ 'command': (has('win32') ? 'node.exe ' : '')
3232 \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/eslint/react-app/node_modules/stylelint/bin/stylelint.js'))
33- \ . ' --cache --fix --stdin --stdin-filename %s',
33+ \ . ' --cache --fix --no-color -- stdin --stdin-filename %s',
3434 \ }
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ Execute(node_modules directories should be discovered):
3737
3838 AssertEqual b:executable, ale_linters#html#stylelint#GetExecutable(bufnr(''))
3939 AssertEqual
40- \ ale#Escape(b:executable) . ' --stdin-filename %s',
40+ \ ale#Escape(b:executable) . ' --no-color -- stdin-filename %s',
4141 \ ale_linters#html#stylelint#GetCommand(bufnr(''))
4242
4343Execute(The global override should work):
@@ -48,13 +48,13 @@ Execute(The global override should work):
4848
4949 AssertEqual 'foobar', ale_linters#html#stylelint#GetExecutable(bufnr(''))
5050 AssertEqual
51- \ ale#Escape('foobar') . ' --stdin-filename %s',
51+ \ ale#Escape('foobar') . ' --no-color -- stdin-filename %s',
5252 \ ale_linters#html#stylelint#GetCommand(bufnr(''))
5353
5454Execute(Extra options should be configurable):
5555 let b:ale_html_stylelint_options = '--whatever'
5656
5757 AssertEqual 'stylelint', ale_linters#html#stylelint#GetExecutable(bufnr(''))
5858 AssertEqual
59- \ ale#Escape('stylelint') . ' --whatever --stdin-filename %s',
59+ \ ale#Escape('stylelint') . ' --whatever --no-color -- stdin-filename %s',
6060 \ ale_linters#html#stylelint#GetCommand(bufnr(''))
Original file line number Diff line number Diff line change @@ -14,19 +14,19 @@ Execute(node_modules directories should be discovered):
1414 \ . '/../test-files/stylelint/node_modules/.bin/stylelint'
1515 \)
1616
17- AssertLinter b:executable, ale#Escape(b:executable) . ' --stdin-filename %s'
17+ AssertLinter b:executable, ale#Escape(b:executable) . ' --no-color -- stdin-filename %s'
1818
1919Execute(The global override should work):
2020 let b:ale_less_stylelint_executable = 'foobar'
2121 let b:ale_less_stylelint_use_global = 1
2222
2323 call ale#test#SetFilename('../test-files/stylelint/nested/testfile.less')
2424
25- AssertLinter 'foobar', ale#Escape('foobar') . ' --stdin-filename %s'
25+ AssertLinter 'foobar', ale#Escape('foobar') . ' --no-color -- stdin-filename %s'
2626
2727Execute(Extra options should be configurable):
2828 let b:ale_less_stylelint_options = '--whatever'
2929 call ale#test#SetFilename('../test-files/dummy')
3030
3131 AssertLinter 'stylelint',
32- \ ale#Escape('stylelint') . ' --whatever --stdin-filename %s'
32+ \ ale#Escape('stylelint') . ' --whatever --no-color -- stdin-filename %s'
Original file line number Diff line number Diff line change @@ -14,20 +14,20 @@ Execute(node_modules directories should be discovered):
1414 \ . '/../test-files/stylelint/node_modules/.bin/stylelint'
1515 \)
1616
17- AssertLinter b:executable, ale#Escape(b:executable) . ' --stdin-filename %s'
17+ AssertLinter b:executable, ale#Escape(b:executable) . ' --no-color -- stdin-filename %s'
1818
1919Execute(The global override should work):
2020 let b:ale_scss_stylelint_executable = 'foobar'
2121 let b:ale_scss_stylelint_use_global = 1
2222
2323 call ale#test#SetFilename('../test-files/stylelint/nested/testfile.scss')
2424
25- AssertLinter 'foobar', ale#Escape('foobar') . ' --stdin-filename %s'
25+ AssertLinter 'foobar', ale#Escape('foobar') . ' --no-color -- stdin-filename %s'
2626
2727Execute(Extra options should be configurable):
2828 call ale#test#SetFilename('../test-files/dummy')
2929
3030 let b:ale_scss_stylelint_options = '--configFile ''/absolute/path/to/file'''
3131
3232 AssertLinter 'stylelint',
33- \ ale#Escape('stylelint') . ' --configFile ''/absolute/path/to/file'' --stdin-filename %s'
33+ \ ale#Escape('stylelint') . ' --configFile ''/absolute/path/to/file'' --no-color -- stdin-filename %s'
Original file line number Diff line number Diff line change @@ -14,20 +14,20 @@ Execute(node_modules directories should be discovered):
1414 \ . '/../test-files/stylelint/node_modules/.bin/stylelint'
1515 \)
1616
17- AssertLinter b:executable, ale#Escape(b:executable) . ' --syntax=sugarss --stdin-filename %s'
17+ AssertLinter b:executable, ale#Escape(b:executable) . ' --syntax=sugarss --no-color -- stdin-filename %s'
1818
1919Execute(The global override should work):
2020 let b:ale_sugarss_stylelint_executable = 'foobar'
2121 let b:ale_sugarss_stylelint_use_global = 1
2222
2323 call ale#test#SetFilename('../test-files/stylelint/nested/testfile.sss')
2424
25- AssertLinter 'foobar', ale#Escape('foobar') . ' --syntax=sugarss --stdin-filename %s'
25+ AssertLinter 'foobar', ale#Escape('foobar') . ' --syntax=sugarss --no-color -- stdin-filename %s'
2626
2727Execute(Extra options should be configurable):
2828 call ale#test#SetFilename('../test-files/dummy')
2929
3030 let b:ale_sugarss_stylelint_options = '--configFile ''/absolute/path/to/file'''
3131
3232 AssertLinter 'stylelint',
33- \ ale#Escape('stylelint') . ' --configFile ''/absolute/path/to/file'' --syntax=sugarss --stdin-filename %s'
33+ \ ale#Escape('stylelint') . ' --configFile ''/absolute/path/to/file'' --syntax=sugarss --no-color -- stdin-filename %s'
You can’t perform that action at this time.
0 commit comments