diff --git a/.eslintrc b/.eslintrc index 78d24476c13..8c5e5ae2ebb 100644 --- a/.eslintrc +++ b/.eslintrc @@ -43,7 +43,7 @@ "@typescript-eslint/no-var-requires": "off", "@typescript-eslint/prefer-for-of": "error", "@typescript-eslint/prefer-function-type": "off", - "@typescript-eslint/prefer-interface": "off", + "@typescript-eslint/prefer-interface": "error", "@typescript-eslint/prefer-namespace-keyword": "off", "semi": "off", "@typescript-eslint/semi": "error", diff --git a/scripts/authors.ts b/scripts/authors.ts index 0c88d1f4345..639b5e40086 100644 --- a/scripts/authors.ts +++ b/scripts/authors.ts @@ -2,15 +2,17 @@ import fs = require('fs'); import path = require('path'); import child_process = require("child_process"); -type Author = { +interface Author { displayNames: string[]; preferredName?: string; emails: string[]; }; -type AuthorMap = { [s: string]: Author }; +interface AuthorMap { + [s: string]: Author +}; -type Command = { +interface Command { (...arg: string[]): void; description?: string; };