diff options
Diffstat (limited to 'node_modules/tslint/lib/rules/noUnnecessaryCallbackWrapperRule.js')
-rw-r--r-- | node_modules/tslint/lib/rules/noUnnecessaryCallbackWrapperRule.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/node_modules/tslint/lib/rules/noUnnecessaryCallbackWrapperRule.js b/node_modules/tslint/lib/rules/noUnnecessaryCallbackWrapperRule.js index 25c7f9173..ecc2337ed 100644 --- a/node_modules/tslint/lib/rules/noUnnecessaryCallbackWrapperRule.js +++ b/node_modules/tslint/lib/rules/noUnnecessaryCallbackWrapperRule.js @@ -35,10 +35,11 @@ var Rule = /** @class */ (function (_super) { /* tslint:disable:object-literal-sort-keys */ Rule.metadata = { ruleName: "no-unnecessary-callback-wrapper", - description: (_a = ["\n Replaces `x => f(x)` with just `f`.\n To catch more cases, enable `only-arrow-functions` and `arrow-return-shorthand` too."], _a.raw = ["\n Replaces \\`x => f(x)\\` with just \\`f\\`.\n To catch more cases, enable \\`only-arrow-functions\\` and \\`arrow-return-shorthand\\` too."], Lint.Utils.dedent(_a)), + description: Lint.Utils.dedent(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n Replaces `x => f(x)` with just `f`.\n To catch more cases, enable `only-arrow-functions` and `arrow-return-shorthand` too."], ["\n Replaces \\`x => f(x)\\` with just \\`f\\`.\n To catch more cases, enable \\`only-arrow-functions\\` and \\`arrow-return-shorthand\\` too."]))), optionsDescription: "Not configurable.", options: null, optionExamples: [true], + rationale: Lint.Utils.dedent(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n There's generally no reason to wrap a function with a callback wrapper if it's directly called anyway.\n Doing so creates extra inline lambdas that slow the runtime down.\n "], ["\n There's generally no reason to wrap a function with a callback wrapper if it's directly called anyway.\n Doing so creates extra inline lambdas that slow the runtime down.\n "]))), type: "style", typescriptOnly: false, }; @@ -83,4 +84,4 @@ function isRedundantCallback(parameters, args, expression) { } return true; } -var _a; +var templateObject_1, templateObject_2; |