Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(feat): support JS & JSX files in tsdx lint #487

Merged
merged 1 commit into from
Feb 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ prog
...config,
...appPackageJson.eslint,
},
extensions: ['.ts', '.tsx'],
extensions: ['.ts', '.tsx', '.js', '.jsx'],
fix: opts.fix,
ignorePattern: opts['ignore-pattern'],
});
Expand Down
4 changes: 1 addition & 3 deletions test/fixtures/build-withConfig/errors/ErrorDev.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

function ErrorDev(message) {
const error = new Error(message);
error.name = 'Invariant Violation';
return error;
}

export default ErrorDev;

export default ErrorDev;
1 change: 0 additions & 1 deletion test/fixtures/build-withConfig/errors/ErrorProd.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

function ErrorProd(code) {
// TODO: replace this URL with yours
let url = 'https://reactjs.org/docs/error-decoder.html?invariant=' + code;
Expand Down
2 changes: 0 additions & 2 deletions test/fixtures/util.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

const shell = require('shelljs');
const path = require('path');
const rootDir = process.cwd();
Expand Down
2 changes: 0 additions & 2 deletions test/utils/psKill.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

const psTree = require('ps-tree');

// Loops through processes and kills them
Expand Down