Skip to content

Commit fd40ace

Browse files
Remove old TSLint comments
1 parent 71871cd commit fd40ace

File tree

4 files changed

+0
-16
lines changed

4 files changed

+0
-16
lines changed

examples/typescript.ts

-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
/* tslint:disable:no-console object-literal-sort-keys */
18-
1917
import {parse} from "../lib/main";
2018

2119
/**

src/utils.ts

-6
Original file line numberDiff line numberDiff line change
@@ -28,33 +28,27 @@ export function isNull(val: unknown): val is null {
2828
return Object.prototype.toString.call(val) === "[object Null]";
2929
}
3030

31-
/* tslint:disable:ban-types */
3231
/**
3332
* @private
3433
*/
3534
export function isObject(val: unknown): val is Record<string, unknown> {
3635
return Object.prototype.toString.call(val) === "[object Object]";
3736
}
3837

39-
/* tslint:enable:ban-types */
40-
4138
/**
4239
* @private
4340
*/
4441
export function isArray(val: unknown): val is unknown[] {
4542
return Object.prototype.toString.call(val) === "[object Array]";
4643
}
4744

48-
/* tslint:disable:ban-types */
4945
/**
5046
* @private
5147
*/
5248
export function isFunction(val: unknown): val is Function {
5349
return Object.prototype.toString.call(val) === "[object Function]";
5450
}
5551

56-
/* tslint:enable:ban-types */
57-
5852
/**
5953
* @private
6054
*/

test/src/main.ts

-6
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ describe("parser", () => {
4545
});
4646

4747
it("object versions of primitives", () => {
48-
/* tslint:disable no-construct */
4948
// noinspection JSPrimitiveTypeWrapperUsage
5049
assert.strictEqual(parse("root", new String("string"),
5150
simpleOptions),
@@ -57,7 +56,6 @@ describe("parser", () => {
5756
assert.strictEqual(parse("root", new Boolean(true),
5857
simpleOptions),
5958
"<root>true</root>");
60-
/* tslint:enable no-construct */
6159
});
6260

6361
it("simple objects and maps", () => {
@@ -108,7 +106,6 @@ describe("parser", () => {
108106
});
109107

110108
it("primitives in objects and maps", () => {
111-
/* tslint:disable no-construct */
112109
// noinspection JSPrimitiveTypeWrapperUsage
113110
assert.strictEqual(
114111
parse(
@@ -158,11 +155,9 @@ describe("parser", () => {
158155
simpleOptions),
159156
"<root><false>str1</false><undefined>str2</undefined>"
160157
+ "<null>str3</null></root>");
161-
/* tslint:enable no-construct */
162158
});
163159

164160
it("primitives in arrays and sets", () => {
165-
/* tslint:disable no-construct */
166161
// noinspection JSPrimitiveTypeWrapperUsage
167162
assert.strictEqual(
168163
parse(
@@ -184,7 +179,6 @@ describe("parser", () => {
184179
"<root><root>test</root><root>3</root><root>false</root>"
185180
+ "<root>undefined</root><root>null</root><root>str1"
186181
+ "</root><root>5</root><root>false</root></root>");
187-
/* tslint:enable no-construct */
188182
});
189183

190184
it("nested objects and maps", () => {

test/src/utils.ts

-2
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,12 @@ describe("utils", () => {
141141

142142
it("should return a valid string representation for all object"
143143
+ " versions of primitive types", () => {
144-
/* tslint:disable no-construct */
145144
// noinspection JSPrimitiveTypeWrapperUsage
146145
assert.strictEqual(stringify(new Number(3)), "3");
147146
// noinspection JSPrimitiveTypeWrapperUsage
148147
assert.strictEqual(stringify(new String("test")), "test");
149148
// noinspection JSPrimitiveTypeWrapperUsage
150149
assert.strictEqual(stringify(new Boolean(true)), "true");
151-
/* tslint:enable no-construct */
152150
});
153151
});
154152
});

0 commit comments

Comments
 (0)