Skip to content

Commit

Permalink
Remove old TSLint comments
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkourlas committed Feb 2, 2020
1 parent 71871cd commit fd40ace
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 16 deletions.
2 changes: 0 additions & 2 deletions examples/typescript.ts
Expand Up @@ -14,8 +14,6 @@
* limitations under the License.
*/

/* tslint:disable:no-console object-literal-sort-keys */

import {parse} from "../lib/main";

/**
Expand Down
6 changes: 0 additions & 6 deletions src/utils.ts
Expand Up @@ -28,33 +28,27 @@ export function isNull(val: unknown): val is null {
return Object.prototype.toString.call(val) === "[object Null]";
}

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

/* tslint:enable:ban-types */

/**
* @private
*/
export function isArray(val: unknown): val is unknown[] {
return Object.prototype.toString.call(val) === "[object Array]";
}

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

/* tslint:enable:ban-types */

/**
* @private
*/
Expand Down
6 changes: 0 additions & 6 deletions test/src/main.ts
Expand Up @@ -45,7 +45,6 @@ describe("parser", () => {
});

it("object versions of primitives", () => {
/* tslint:disable no-construct */
// noinspection JSPrimitiveTypeWrapperUsage
assert.strictEqual(parse("root", new String("string"),
simpleOptions),
Expand All @@ -57,7 +56,6 @@ describe("parser", () => {
assert.strictEqual(parse("root", new Boolean(true),
simpleOptions),
"<root>true</root>");
/* tslint:enable no-construct */
});

it("simple objects and maps", () => {
Expand Down Expand Up @@ -108,7 +106,6 @@ describe("parser", () => {
});

it("primitives in objects and maps", () => {
/* tslint:disable no-construct */
// noinspection JSPrimitiveTypeWrapperUsage
assert.strictEqual(
parse(
Expand Down Expand Up @@ -158,11 +155,9 @@ describe("parser", () => {
simpleOptions),
"<root><false>str1</false><undefined>str2</undefined>"
+ "<null>str3</null></root>");
/* tslint:enable no-construct */
});

it("primitives in arrays and sets", () => {
/* tslint:disable no-construct */
// noinspection JSPrimitiveTypeWrapperUsage
assert.strictEqual(
parse(
Expand All @@ -184,7 +179,6 @@ describe("parser", () => {
"<root><root>test</root><root>3</root><root>false</root>"
+ "<root>undefined</root><root>null</root><root>str1"
+ "</root><root>5</root><root>false</root></root>");
/* tslint:enable no-construct */
});

it("nested objects and maps", () => {
Expand Down
2 changes: 0 additions & 2 deletions test/src/utils.ts
Expand Up @@ -141,14 +141,12 @@ describe("utils", () => {

it("should return a valid string representation for all object"
+ " versions of primitive types", () => {
/* tslint:disable no-construct */
// noinspection JSPrimitiveTypeWrapperUsage
assert.strictEqual(stringify(new Number(3)), "3");
// noinspection JSPrimitiveTypeWrapperUsage
assert.strictEqual(stringify(new String("test")), "test");
// noinspection JSPrimitiveTypeWrapperUsage
assert.strictEqual(stringify(new Boolean(true)), "true");
/* tslint:enable no-construct */
});
});
});

0 comments on commit fd40ace

Please sign in to comment.