From af47b2bfc58bc86044fe1562b573e1f3927587ea Mon Sep 17 00:00:00 2001 From: amzac Date: Sat, 25 Nov 2017 21:00:13 +0100 Subject: [PATCH] Fix tslint... --- types/nightwatch/index.d.ts | 7 +--- types/nightwatch/tslint.json | 76 +++++++++++++++++++++++++++++++++++- 2 files changed, 75 insertions(+), 8 deletions(-) diff --git a/types/nightwatch/index.d.ts b/types/nightwatch/index.d.ts index 1607a8a2f4..cd2ec9e912 100644 --- a/types/nightwatch/index.d.ts +++ b/types/nightwatch/index.d.ts @@ -4,7 +4,6 @@ // Connor Schlesiger // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/* tslint:disable:max-line-length */ export interface NightwatchCustomPageObjects { page: {}; @@ -633,7 +632,6 @@ export interface NightwatchTypedCallbackResult { state: Error | string; } -// tslint:disable-next-line:no-empty-interface export interface NightwatchCallbackResult extends NightwatchTypedCallbackResult { } @@ -1305,7 +1303,7 @@ export interface NightwatchAPI { * callback providing a done callback function for completion as the first argument. Two parameters: allows for asynchronous execution * with the "api" object passed in as the first argument, followed by the done callback. */ - perform(callback: (done?: () => void) => void): this; // tslint:disable-line:unified-signatures + perform(callback: (done?: () => void) => void): this; /** * Resizes the current window. @@ -2144,10 +2142,8 @@ export interface NightwatchAPI { launch_url: string; } -/* tslint:disable-next-line:no-empty-interface */ export interface NightwatchCustomCommands {} -/* tslint:disable-next-line:no-empty-interface */ export interface NightwatchCustomAssertions {} export interface NightwatchBrowser extends NightwatchAPI, NightwatchCustomCommands, NightwatchCustomAssertions, NightwatchCustomPageObjects { } @@ -2200,4 +2196,3 @@ export interface Nightwatch { client: NightwatchClient; } -/* tslint:enable:max-line-length */ diff --git a/types/nightwatch/tslint.json b/types/nightwatch/tslint.json index b1439230db..a41bf5d19a 100644 --- a/types/nightwatch/tslint.json +++ b/types/nightwatch/tslint.json @@ -1,7 +1,79 @@ { "extends": "dtslint/dt.json", "rules": { - // TODO - "no-any-union": false + "adjacent-overload-signatures": false, + "array-type": false, + "arrow-return-shorthand": false, + "ban-types": false, + "callable-types": false, + "comment-format": false, + "dt-header": false, + "eofline": false, + "export-just-namespace": false, + "import-spacing": false, + "interface-name": false, + "interface-over-type-literal": false, + "jsdoc-format": false, + "max-line-length": false, + "member-access": false, + "new-parens": false, + "no-any-union": false, + "no-boolean-literal-compare": false, + "no-conditional-assignment": false, + "no-consecutive-blank-lines": false, + "no-construct": false, + "no-declare-current-package": false, + "no-duplicate-imports": false, + "no-duplicate-variable": false, + "no-empty-interface": false, + "no-for-in-array": false, + "no-inferrable-types": false, + "no-internal-module": false, + "no-irregular-whitespace": false, + "no-mergeable-namespace": false, + "no-misused-new": false, + "no-namespace": false, + "no-object-literal-type-assertion": false, + "no-padding": false, + "no-redundant-jsdoc": false, + "no-redundant-jsdoc-2": false, + "no-redundant-undefined": false, + "no-reference-import": false, + "no-relative-import-in-test": false, + "no-self-import": false, + "no-single-declare-module": false, + "no-string-throw": false, + "no-unnecessary-callback-wrapper": false, + "no-unnecessary-class": false, + "no-unnecessary-generics": false, + "no-unnecessary-qualifier": false, + "no-unnecessary-type-assertion": false, + "no-useless-files": false, + "no-var-keyword": false, + "no-var-requires": false, + "no-void-expression": false, + "no-trailing-whitespace": false, + "object-literal-key-quotes": false, + "object-literal-shorthand": false, + "one-line": false, + "one-variable-per-declaration": false, + "only-arrow-functions": false, + "prefer-conditional-expression": false, + "prefer-const": false, + "prefer-declare-function": false, + "prefer-for-of": false, + "prefer-method-signature": false, + "prefer-template": false, + "radix": false, + "semicolon": false, + "space-before-function-paren": false, + "space-within-parens": false, + "strict-export-declare-modifiers": false, + "trim-file": false, + "triple-equals": false, + "typedef-whitespace": false, + "unified-signatures": false, + "void-return": false, + "whitespace": false } }