microsoft-typescript/only-arrow-functions

This commit is contained in:
Alexander T
2019-06-20 12:46:02 +03:00
parent 67e20fc87a
commit 0e14b4e030
6 changed files with 13 additions and 10 deletions

View File

@@ -5,7 +5,7 @@ namespace Harness.LanguageService {
const proxy = Object.create(/*prototype*/ null);
const langSvc: any = info.languageService;
for (const k of Object.keys(langSvc)) {
// tslint:disable-next-line only-arrow-functions
// eslint-disable-next-line microsoft-typescript/only-arrow-functions
proxy[k] = function () {
return langSvc[k].apply(langSvc, arguments);
};
@@ -800,7 +800,7 @@ namespace Harness.LanguageService {
create(info: ts.server.PluginCreateInfo) {
const proxy = makeDefaultProxy(info);
const langSvc: any = info.languageService;
// tslint:disable-next-line only-arrow-functions
// eslint-disable-next-line microsoft-typescript/only-arrow-functions
proxy.getQuickInfoAtPosition = function () {
const parts = langSvc.getQuickInfoAtPosition.apply(langSvc, arguments);
if (parts.displayParts.length > 0) {