aboutsummaryrefslogtreecommitdiff
path: root/node_modules/tslint/lib/rules/noFloatingPromisesRule.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-09-20 02:56:13 +0200
committerFlorian Dold <florian.dold@gmail.com>2018-09-20 02:56:13 +0200
commitbbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch)
treec58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/tslint/lib/rules/noFloatingPromisesRule.js
parent003fb34971cf63466184351b4db5f7c67df4f444 (diff)
update packages
Diffstat (limited to 'node_modules/tslint/lib/rules/noFloatingPromisesRule.js')
-rw-r--r--node_modules/tslint/lib/rules/noFloatingPromisesRule.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/node_modules/tslint/lib/rules/noFloatingPromisesRule.js b/node_modules/tslint/lib/rules/noFloatingPromisesRule.js
index 152a03eab..f6d8c1e0d 100644
--- a/node_modules/tslint/lib/rules/noFloatingPromisesRule.js
+++ b/node_modules/tslint/lib/rules/noFloatingPromisesRule.js
@@ -32,8 +32,8 @@ var Rule = /** @class */ (function (_super) {
Rule.metadata = {
ruleName: "no-floating-promises",
description: "Promises returned by functions must be handled appropriately.",
- descriptionDetails: "Use `no-unused-expression` in addition to this rule to reveal even more floating promises.",
- optionsDescription: (_a = ["\n A list of 'string' names of any additional classes that should also be handled as Promises.\n "], _a.raw = ["\n A list of \\'string\\' names of any additional classes that should also be handled as Promises.\n "], Lint.Utils.dedent(_a)),
+ descriptionDetails: "Unhandled Promises can cause unexpected behavior, such as resolving at unexpected times.",
+ optionsDescription: Lint.Utils.dedent(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n A list of 'string' names of any additional classes that should also be handled as Promises.\n "], ["\n A list of \\'string\\' names of any additional classes that should also be handled as Promises.\n "]))),
options: {
type: "list",
listType: {
@@ -42,7 +42,7 @@ var Rule = /** @class */ (function (_super) {
},
},
optionExamples: [true, [true, "JQueryPromise"]],
- rationale: "Unhandled Promises can cause unexpected behavior, such as resolving at unexpected times.",
+ rationale: Lint.Utils.dedent(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n Creating a Promise and not storing or returning it may let other code run independently of its result.\n This can cause unexpected and/or non-deterministic behavior depending on external timing factors.\n\n It's typically better to return Promises from functions that start them, then handle them in calling code.\n\n Use `no-unused-expression` in addition to this rule to reveal even more floating promises.\n "], ["\n Creating a Promise and not storing or returning it may let other code run independently of its result.\n This can cause unexpected and/or non-deterministic behavior depending on external timing factors.\n\n It's typically better to return Promises from functions that start them, then handle them in calling code.\n\n Use \\`no-unused-expression\\` in addition to this rule to reveal even more floating promises.\n "]))),
type: "functionality",
typescriptOnly: true,
requiresTypeInfo: true,
@@ -76,4 +76,4 @@ function isPromiseThenCallWithRejectionHandler(expression) {
expression.expression.name.text === "then" &&
expression.arguments.length >= 2;
}
-var _a;
+var templateObject_1, templateObject_2;