From 53f4ae7e3561104a4cd40d4f2f7e4ba73a1747e2 Mon Sep 17 00:00:00 2001 From: Chris Arnesen Date: Wed, 21 Nov 2018 13:21:33 +0700 Subject: [PATCH] Fix lint errors --- types/expand-tilde/expand-tilde-tests.ts | 2 +- types/expand-tilde/index.d.ts | 3 +-- types/expand-tilde/tsconfig.json | 1 + types/expand-tilde/tslint.json | 7 ++++++- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/types/expand-tilde/expand-tilde-tests.ts b/types/expand-tilde/expand-tilde-tests.ts index b9e89f3204..8b655f1450 100644 --- a/types/expand-tilde/expand-tilde-tests.ts +++ b/types/expand-tilde/expand-tilde-tests.ts @@ -1,3 +1,3 @@ import expandTilde = require("expand-tilde"); -expandTilde("~") // $ExpectType string +expandTilde("~"); // $ExpectType string diff --git a/types/expand-tilde/index.d.ts b/types/expand-tilde/index.d.ts index 3a0f660bd9..7eec7b60ad 100644 --- a/types/expand-tilde/index.d.ts +++ b/types/expand-tilde/index.d.ts @@ -3,9 +3,8 @@ // Definitions by: Chris Arnesen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - /** - * Bash-like tilde expansion for node.js. + * Bash-like tilde expansion for node.js. * Expands a leading tilde (~) in a file path to the user home directory, or ~+ to the cwd. * * @param {string} filePath - a file path to expand diff --git a/types/expand-tilde/tsconfig.json b/types/expand-tilde/tsconfig.json index 596eaef581..5ead90e013 100644 --- a/types/expand-tilde/tsconfig.json +++ b/types/expand-tilde/tsconfig.json @@ -7,6 +7,7 @@ "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, + "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ "../" diff --git a/types/expand-tilde/tslint.json b/types/expand-tilde/tslint.json index 3db14f85ea..76efdfe46d 100644 --- a/types/expand-tilde/tslint.json +++ b/types/expand-tilde/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-redundant-jsdoc-2": false + } +}