aboutsummaryrefslogtreecommitdiff
path: root/node_modules/tslint/lib/rules/preferSwitchRule.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/tslint/lib/rules/preferSwitchRule.js')
-rw-r--r--node_modules/tslint/lib/rules/preferSwitchRule.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/node_modules/tslint/lib/rules/preferSwitchRule.js b/node_modules/tslint/lib/rules/preferSwitchRule.js
index f9afd3650..6291ac4cc 100644
--- a/node_modules/tslint/lib/rules/preferSwitchRule.js
+++ b/node_modules/tslint/lib/rules/preferSwitchRule.js
@@ -17,6 +17,7 @@
*/
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
+var _a, _b;
var utils = require("tsutils");
var ts = require("typescript");
var Lint = require("../index");
@@ -38,14 +39,14 @@ var Rule = /** @class */ (function (_super) {
Rule.metadata = {
ruleName: "prefer-switch",
description: "Prefer a `switch` statement to an `if` statement with simple `===` comparisons.",
- optionsDescription: (_a = ["\n An optional object with the property '", "'.\n This is the number cases needed before a switch statement is recommended.\n Defaults to 3."], _a.raw = ["\n An optional object with the property '", "'.\n This is the number cases needed before a switch statement is recommended.\n Defaults to 3."], Lint.Utils.dedent(_a, OPTION_MIN_CASES)),
+ optionsDescription: Lint.Utils.dedent(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n An optional object with the property '", "'.\n This is the number cases needed before a switch statement is recommended.\n Defaults to 3."], ["\n An optional object with the property '", "'.\n This is the number cases needed before a switch statement is recommended.\n Defaults to 3."])), OPTION_MIN_CASES),
options: {
type: "object",
- properties: (_b = {},
- _b[OPTION_MIN_CASES] = { type: "number" },
- _b),
+ properties: (_a = {},
+ _a[OPTION_MIN_CASES] = { type: "number" },
+ _a),
},
- optionExamples: [true, [true, (_c = {}, _c[OPTION_MIN_CASES] = 2, _c)]],
+ optionExamples: [true, [true, (_b = {}, _b[OPTION_MIN_CASES] = 2, _b)]],
type: "style",
typescriptOnly: false,
};
@@ -136,4 +137,4 @@ function isSimple(node) {
return false;
}
}
-var _a, _b, _c;
+var templateObject_1;