From afb5c9bfcf7a1a0f0f2e89167de2f2179db53585 Mon Sep 17 00:00:00 2001 From: Alexander T Date: Fri, 14 Jun 2019 11:25:18 +0300 Subject: [PATCH] @typescript-eslint/prefer-interface --- .eslintrc | 2 +- scripts/authors.ts | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) 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; };