Fix tslint...

This commit is contained in:
amzac
2017-11-25 21:00:13 +01:00
parent d72fc5bf61
commit af47b2bfc5
2 changed files with 75 additions and 8 deletions

View File

@@ -4,7 +4,6 @@
// Connor Schlesiger <https://github.com/schlesiger>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/* tslint:disable:max-line-length */
export interface NightwatchCustomPageObjects {
page: {};
@@ -633,7 +632,6 @@ export interface NightwatchTypedCallbackResult<T> {
state: Error | string;
}
// tslint:disable-next-line:no-empty-interface
export interface NightwatchCallbackResult extends NightwatchTypedCallbackResult<any> {
}
@@ -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 */

View File

@@ -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
}
}