File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8888 "no-fallthrough": "off",
8989 "no-invalid-this": "off",
9090 "no-multiple-empty-lines": "off",
91- "no-new-func": "off ",
91+ "no-new-func": "error ",
9292 "no-new-wrappers": "error",
9393 "no-redeclare": "off",
9494 "no-return-await": "error",
Original file line number Diff line number Diff line change @@ -600,7 +600,7 @@ namespace FourSlash {
600600 throw new Error ( "Expected exactly one output from emit of " + this . activeFile . fileName ) ;
601601 }
602602
603- const evaluation = new Function ( `${ emit . outputFiles [ 0 ] . text } ;\r\nreturn (${ expr } );` ) ( ) ; // tslint: disable-line:function-constructor
603+ const evaluation = new Function ( `${ emit . outputFiles [ 0 ] . text } ;\r\nreturn (${ expr } );` ) ( ) ; // eslint- disable-line no-new-func
604604 if ( evaluation !== value ) {
605605 this . raiseError ( `Expected evaluation of expression "${ expr } " to equal "${ value } ", but got "${ evaluation } "` ) ;
606606 }
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ var assert: typeof _chai.assert = _chai.assert;
2828 } ;
2929}
3030
31- var global : NodeJS . Global = Function ( "return this" ) . call ( undefined ) ; // tslint: disable-line:function-constructor
31+ var global : NodeJS . Global = Function ( "return this" ) . call ( undefined ) ; // eslint- disable-line no-new-func
3232
3333declare var window : { } ;
3434declare var XMLHttpRequest : new ( ) => XMLHttpRequest ;
You can’t perform that action at this time.
0 commit comments