Skip to content

Commit aff7817

Browse files
committed
meta, formatting
1 parent 1baa872 commit aff7817

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

bin/ts-node-dev

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ var opts = minimist(devArgs, {
3232
'log-error',
3333
'prefer-ts-exts',
3434
'tree-kill',
35-
'clear', 'cls',
36-
'exit-child',
35+
'clear',
36+
'cls',
37+
'exit-child',
3738
'rs',
38-
'error-recompile'
39+
'error-recompile',
3940
],
4041
string: [
4142
'compiler',
@@ -55,7 +56,7 @@ var opts = minimist(devArgs, {
5556
'interval',
5657
'debounce',
5758
'watch',
58-
'restart-terminated',
59+
'restart-terminated',
5960
],
6061
alias: {
6162
transpileOnly: 'T',
@@ -65,27 +66,27 @@ var opts = minimist(devArgs, {
6566
compilerOptions: 'O',
6667
compiler: 'C',
6768
project: 'P',
68-
'restart-terminated': 'rt'
69+
'restart-terminated': 'rt',
6970
},
7071
default: { deps: true, notify: true, rs: false, 'type-check': true },
71-
unknown: function(arg) {
72+
unknown: function (arg) {
7273
unknown.push(arg)
7374
return true
74-
}
75+
},
7576
})
7677

7778
var script = opts._[0]
7879
var scriptArgs = opts._.slice(1)
7980

8081
opts.priorNodeArgs = []
8182

82-
unknown.forEach(function(arg) {
83+
unknown.forEach(function (arg) {
8384
if (arg === script || nodeArgs.indexOf(arg) >= 0) return
8485

8586
var argName = arg.replace(/^-+/, '')
8687
var argOpts = opts[argName]
8788
var argValues = Array.isArray(argOpts) ? argOpts : [argOpts]
88-
argValues.forEach(function(argValue) {
89+
argValues.forEach(function (argValue) {
8990
if ((arg === '-r' || arg === '--require') && argValue === 'esm') {
9091
opts.priorNodeArgs.push(arg, argValue)
9192
return false

test/fixture/with-error.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
import { fn } from './dep-ts-error'
22

3-
// @ts-expect-erro
43
console.log(fn('1'))

tsconfig.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
"module": "commonjs",
66
"declaration": true,
77
"sourceMap": true,
8-
"strictNullChecks": true,
9-
"noImplicitAny": true,
10-
"noImplicitThis": true,
11-
"noImplicitReturns": true,
8+
"strict": true,
129
"noFallthroughCasesInSwitch": true,
1310
"experimentalDecorators": true,
1411
"emitDecoratorMetadata": true,

0 commit comments

Comments
 (0)