mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-28 08:17:54 +08:00
Cleanup ignore lint error: no-construct
Every line that violates the rules has a clear intention of ensuring coverage.
This commit is contained in:
@@ -133,7 +133,9 @@ function _typeof() {
|
||||
expect(5).to.be.a('number');
|
||||
(5).should.be.a('number');
|
||||
|
||||
// tslint:disable-next-line:no-construct
|
||||
expect(new Number(1)).to.be.a('number');
|
||||
// tslint:disable-next-line:no-construct
|
||||
(new Number(1)).should.be.a('number');
|
||||
expect(Number(1)).to.be.a('number');
|
||||
Number(1).should.be.a('number');
|
||||
@@ -1304,6 +1306,7 @@ suite('assert', () => {
|
||||
|
||||
test('isString', () => {
|
||||
assert.isString('Foo');
|
||||
// tslint:disable-next-line:no-construct
|
||||
assert.isString(new String('foo'));
|
||||
assert.isString(1);
|
||||
});
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
"ban-types": false,
|
||||
"callable-types": false,
|
||||
"new-parens": false,
|
||||
"no-construct": false,
|
||||
"no-empty-interface": false,
|
||||
"no-inferrable-types": false,
|
||||
"no-redundant-jsdoc-2": false,
|
||||
|
||||
Reference in New Issue
Block a user