-
Notifications
You must be signed in to change notification settings - Fork 508
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(feat): support JS & JSX files in tsdx lint (#487)
- JS & JSX are already supported in tsdx build, so this is just adding some better parity in tsdx test - more JS & JSX support also means better support for gradual TS migrations - prior to this, JS & JSX files wouldn't be linted unless explicitly included with a glob or something - extensions is also only configurable via CLIEngine, .eslintrc doesn't currently support it - fix errors & warnings in JS test files as TSDX dogfoods its own lint functionality
- Loading branch information
Showing
5 changed files
with
2 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|