mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
microsoft-typescript/only-arrow-functions
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user