Skip to content

Commit

Permalink
impl: adiciona opção do comando não falhar caso nenhum arquivo alvo s…
Browse files Browse the repository at this point in the history
…eja encontrado
  • Loading branch information
jeanpsv committed Nov 12, 2020
1 parent 6c1207d commit 7e51ab9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions __tests__/runStylelintWithConfigFile.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ describe('Running stylelint', () => {
'--config', '.stylelintrc.json',
'--formatter', 'json',
'--ignore-disables',
'--allow-empty-input',
],
{ cwd: packageDirectory },
);
Expand All @@ -45,6 +46,7 @@ describe('Running stylelint', () => {
'--config', '.stylelintrc.json',
'--formatter', 'json',
'--ignore-disables',
'--allow-empty-input',
],
{ cwd: packageDirectory },
);
Expand All @@ -66,6 +68,7 @@ describe('Running stylelint', () => {
'--config', '.stylelintrc.json',
'--formatter', 'json',
'--ignore-disables',
'--allow-empty-input',
],
{ cwd: packageDirectory },
);
Expand Down
1 change: 1 addition & 0 deletions runStylelintWithConfigFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const runStylelintWithConfigFile = (file) => {
'--config', path.basename(file),
'--formatter', 'json',
'--ignore-disables',
'--allow-empty-input',
],
{ cwd: path.dirname(file) },
);
Expand Down

0 comments on commit 7e51ab9

Please sign in to comment.