Skip to content

Commit afb5c9b

Browse files
committed
@typescript-eslint/prefer-interface
1 parent 3fb48d3 commit afb5c9b

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"@typescript-eslint/no-var-requires": "off",
4444
"@typescript-eslint/prefer-for-of": "error",
4545
"@typescript-eslint/prefer-function-type": "off",
46-
"@typescript-eslint/prefer-interface": "off",
46+
"@typescript-eslint/prefer-interface": "error",
4747
"@typescript-eslint/prefer-namespace-keyword": "off",
4848
"semi": "off",
4949
"@typescript-eslint/semi": "error",

scripts/authors.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@ import fs = require('fs');
22
import path = require('path');
33
import child_process = require("child_process");
44

5-
type Author = {
5+
interface Author {
66
displayNames: string[];
77
preferredName?: string;
88
emails: string[];
99
};
1010

11-
type AuthorMap = { [s: string]: Author };
11+
interface AuthorMap {
12+
[s: string]: Author
13+
};
1214

13-
type Command = {
15+
interface Command {
1416
(...arg: string[]): void;
1517
description?: string;
1618
};

0 commit comments

Comments
 (0)