lint typescript-eslint/consistent-indexed-object-style

This commit is contained in:
Eugene Pankov
2020-12-24 18:56:59 +01:00
parent 2ef3a81dd8
commit aacc603309
11 changed files with 13 additions and 14 deletions

View File

@@ -37,7 +37,7 @@ export interface Shell {
name?: string
command: string
args?: string[]
env: {[id: string]: string}
env: Record<string, string>
/**
* Base path to which shell's internal FS is relative

View File

@@ -331,7 +331,7 @@ export class Session extends BaseSession {
/** @hidden */
@Injectable({ providedIn: 'root' })
export class SessionsService {
sessions: {[id: string]: BaseSession} = {}
sessions: Record<string, BaseSession> = {}
logger: Logger
private lastID = 0

View File

@@ -16,7 +16,7 @@ try {
// WSL Distribution List
// https://docs.microsoft.com/en-us/windows/wsl/install-win10#install-your-linux-distribution-of-choice
/* eslint-disable quote-props */
const wslIconMap: { [key: string]: string } = {
const wslIconMap: Record<string, string> = {
'Alpine': require('../icons/alpine.svg'),
'Debian': require('../icons/debian.svg'),
'kali-linux': require('../icons/linux.svg'),