Skip to content

Commit cefea68

Browse files
sandersnjakebailey
andauthored
Port void return to no invalid void type (#67472)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
1 parent 9b02cf9 commit cefea68

File tree

466 files changed

+1010
-211
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

466 files changed

+1010
-211
lines changed

types/ace/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ declare namespace AceAjax {
5858
hashId: number,
5959
keyString: string,
6060
keyCode: string | number,
61+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
6162
): void | { command: string };
6263
getStatusText(editor: Editor, data: {}): string;
6364
platform: string;

types/amplitude-js/v4/.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"rules": {
33
"@definitelytyped/dt-header": "off",
44
"@definitelytyped/strict-export-declare-modifiers": "off",
5-
"@typescript-eslint/prefer-namespace": "off"
5+
"@typescript-eslint/prefer-namespace": "off",
6+
"@typescript-eslint/no-invalid-void-type": "off"
67
}
78
}

types/amplitude-js/v4/tslint.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"no-boolean-literal-compare": false,
55
"no-namespace": false,
66
"no-var-keyword": false,
7-
"only-arrow-functions": false,
8-
"void-return": false
7+
"only-arrow-functions": false
98
}
109
}

types/angular-es/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
declare module "angular-es" {
22
interface ClassDecorator {
3+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
34
<TFunction extends Function>(target: TFunction): TFunction | void;
45
}
56

@@ -8,6 +9,7 @@ declare module "angular-es" {
89
target: Object,
910
propertyKey: string | symbol,
1011
descriptor: TypedPropertyDescriptor<T>,
12+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
1113
): TypedPropertyDescriptor<T> | void;
1214
}
1315

types/angular-ui-sortable/.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"rules": {
33
"@definitelytyped/strict-export-declare-modifiers": "off",
44
"@typescript-eslint/ban-types": "off",
5-
"@typescript-eslint/triple-slash-reference": "off"
5+
"@typescript-eslint/triple-slash-reference": "off",
6+
"@typescript-eslint/no-invalid-void-type": "off"
67
}
78
}

types/angular-ui-sortable/tslint.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"no-void-expression": false,
88
"object-literal-shorthand": false,
99
"only-arrow-functions": false,
10-
"prefer-const": false,
11-
"void-return": false
10+
"prefer-const": false
1211
}
1312
}

types/angular/.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"@definitelytyped/no-unnecessary-generics": "off",
44
"@typescript-eslint/ban-types": "off",
55
"@typescript-eslint/no-empty-interface": "off",
6-
"@typescript-eslint/naming-convention": "off"
6+
"@typescript-eslint/naming-convention": "off",
7+
"@typescript-eslint/no-invalid-void-type": "off"
78
}
89
}

types/angular/tslint.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"variable-name": [
1010
true,
1111
"check-format"
12-
],
13-
"void-return": false
12+
]
1413
}
1514
}

types/apicache/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export interface Options {
8585
/** Event callbacks */
8686
events?: {
8787
/** Expire callback triggered by redis client is used. Defaults to empty function */
88+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
8889
expire: (err: Error | null, reply: number) => void | undefined;
8990
} | undefined;
9091
/**

types/arangodb/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,6 +1054,7 @@ declare namespace Foxx {
10541054
mount: string;
10551055
indexFile: string;
10561056
swaggerRoot: string;
1057+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
10571058
before: (req: Request, res: Response) => void | false;
10581059
}
10591060

0 commit comments

Comments
 (0)