diff --git a/__tests__/fixtures/projects/back-end/.eslintrc.json b/__tests__/fixtures/projects/back-end/.eslintrc.json index c0830bb..2c97e0b 100644 --- a/__tests__/fixtures/projects/back-end/.eslintrc.json +++ b/__tests__/fixtures/projects/back-end/.eslintrc.json @@ -1,4 +1,5 @@ { + "root": true, "rules": { "max-params": [ "error", diff --git a/__tests__/runEslintWithConfigFile.test.js b/__tests__/runEslintWithConfigFile.test.js index 60a4841..6f3e571 100644 --- a/__tests__/runEslintWithConfigFile.test.js +++ b/__tests__/runEslintWithConfigFile.test.js @@ -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', '.' @@ -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', '.' @@ -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', '.' @@ -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', '.' @@ -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', '.' diff --git a/dist/index.js b/dist/index.js index a088db8..fb8ac9c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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), '.', @@ -4762,7 +4762,7 @@ const runEslintWithConfigFile = (file) => { logProcessConclusion(eslintProcess); - return { status: eslintProcess.status , outcomes }; + return { status: eslintProcess.status, outcomes }; }; module.exports = runEslintWithConfigFile; diff --git a/runEslintWithConfigFile.js b/runEslintWithConfigFile.js index 40e74e7..0eb8761 100644 --- a/runEslintWithConfigFile.js +++ b/runEslintWithConfigFile.js @@ -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), '.', @@ -28,7 +28,7 @@ const runEslintWithConfigFile = (file) => { logProcessConclusion(eslintProcess); - return { status: eslintProcess.status , outcomes }; + return { status: eslintProcess.status, outcomes }; }; module.exports = runEslintWithConfigFile;