chore: lint using putout

This commit is contained in:
coderaiser
2020-06-01 00:04:17 +03:00
parent 4e6151d011
commit f63f1f7b95
16 changed files with 50 additions and 31 deletions
+2 -2
View File
@@ -174,8 +174,8 @@ export class CoreMouseService implements ICoreMouseService {
@ICoreService private readonly _coreService: ICoreService
) {
// register default protocols and encodings
Object.keys(DEFAULT_PROTOCOLS).forEach(name => this.addProtocol(name, DEFAULT_PROTOCOLS[name]));
Object.keys(DEFAULT_ENCODINGS).forEach(name => this.addEncoding(name, DEFAULT_ENCODINGS[name]));
for (const name of Object.keys(DEFAULT_PROTOCOLS)) this.addProtocol(name, DEFAULT_PROTOCOLS[name]);
for (const name of Object.keys(DEFAULT_ENCODINGS)) this.addEncoding(name, DEFAULT_ENCODINGS[name]);
// call reset to set defaults
this.reset();
}
+2 -2
View File
@@ -71,12 +71,12 @@ export class OptionsService implements IOptionsService {
constructor(options: IPartialTerminalOptions) {
this.options = clone(DEFAULT_OPTIONS);
Object.keys(options).forEach(k => {
for (const k of Object.keys(options)) {
if (k in this.options) {
const newValue = options[k as keyof IPartialTerminalOptions] as any;
this.options[k] = newValue;
}
});
}
}
public setOption(key: string, value: any): void {
+1 -1
View File
@@ -136,7 +136,7 @@ export interface IServiceIdentifier<T> {
export interface IBrandedService {
serviceBrand: undefined;
};
}
type GetLeadingNonServiceArgs<Args> =
Args extends [...IBrandedService[]] ? []