@typescript-eslint/prefer-interface

This commit is contained in:
Alexander T 2019-06-14 11:25:18 +03:00
parent 3fb48d3f24
commit afb5c9bfcf
2 changed files with 6 additions and 4 deletions

View File

@ -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",

View File

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