Skip to content

Commit

Permalink
Merge pull request #9 from isquicha/debug2
Browse files Browse the repository at this point in the history
Avaliador de Typescript
  • Loading branch information
renanvy authored Nov 18, 2021
2 parents ed7b551 + ad88486 commit 354bc4f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions __tests__/fixtures/projects/back-end/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"root": true,
"rules": {
"max-params": [
"error",
Expand Down
10 changes: 5 additions & 5 deletions __tests__/runEslintWithConfigFile.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('Running eslint', () => {
'eslint',
'-f', 'json',
'--no-inline-config',
'--ext', '.js, .jsx',
'--ext', '.ts, .tsx, .js, .jsx',
'--no-error-on-unmatched-pattern',
'-c', '.eslintrc.json',
'.'
Expand All @@ -49,7 +49,7 @@ describe('Running eslint', () => {
'eslint',
'-f', 'json',
'--no-inline-config',
'--ext', '.js, .jsx',
'--ext', '.ts, .tsx, .js, .jsx',
'--no-error-on-unmatched-pattern',
'-c', '.eslintrc.json',
'.'
Expand All @@ -73,7 +73,7 @@ describe('Running eslint', () => {
'eslint',
'-f', 'json',
'--no-inline-config',
'--ext', '.js, .jsx',
'--ext', '.ts, .tsx, .js, .jsx',
'--no-error-on-unmatched-pattern',
'-c', '.eslintrc.json',
'.'
Expand All @@ -96,7 +96,7 @@ describe('Running eslint', () => {
'eslint',
'-f', 'json',
'--no-inline-config',
'--ext', '.js, .jsx',
'--ext', '.ts, .tsx, .js, .jsx',
'--no-error-on-unmatched-pattern',
'-c', '.eslintrc.json',
'.'
Expand All @@ -118,7 +118,7 @@ describe('Running eslint', () => {
[
'eslint',
'-f', 'json',
'--ext', '.js, .jsx',
'--ext', '.ts, .tsx, .js, .jsx',
'--no-error-on-unmatched-pattern',
'-c', '.eslintrc.json',
'.'
Expand Down
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4745,7 +4745,7 @@ const runEslintWithConfigFile = (file) => {
const args = [
'eslint',
'-f', 'json',
'--ext', '.js, .jsx',
'--ext', '.ts, .tsx, .js, .jsx',
'--no-error-on-unmatched-pattern',
'-c', path.basename(file),
'.',
Expand All @@ -4762,7 +4762,7 @@ const runEslintWithConfigFile = (file) => {

logProcessConclusion(eslintProcess);

return { status: eslintProcess.status , outcomes };
return { status: eslintProcess.status, outcomes };
};

module.exports = runEslintWithConfigFile;
Expand Down
4 changes: 2 additions & 2 deletions runEslintWithConfigFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const runEslintWithConfigFile = (file) => {
const args = [
'eslint',
'-f', 'json',
'--ext', '.js, .jsx',
'--ext', '.ts, .tsx, .js, .jsx',
'--no-error-on-unmatched-pattern',
'-c', path.basename(file),
'.',
Expand All @@ -28,7 +28,7 @@ const runEslintWithConfigFile = (file) => {

logProcessConclusion(eslintProcess);

return { status: eslintProcess.status , outcomes };
return { status: eslintProcess.status, outcomes };
};

module.exports = runEslintWithConfigFile;

0 comments on commit 354bc4f

Please sign in to comment.