aboutsummaryrefslogtreecommitdiff
path: root/node_modules/tslint/lib/rules/deprecationRule.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/tslint/lib/rules/deprecationRule.js')
-rw-r--r--node_modules/tslint/lib/rules/deprecationRule.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/node_modules/tslint/lib/rules/deprecationRule.js b/node_modules/tslint/lib/rules/deprecationRule.js
index bcd8a7da4..619783700 100644
--- a/node_modules/tslint/lib/rules/deprecationRule.js
+++ b/node_modules/tslint/lib/rules/deprecationRule.js
@@ -36,11 +36,11 @@ var Rule = /** @class */ (function (_super) {
Rule.metadata = {
ruleName: "deprecation",
description: "Warns when deprecated APIs are used.",
- descriptionDetails: (_a = ["Any usage of an identifier\n with the @deprecated JSDoc annotation will trigger a warning.\n See http://usejsdoc.org/tags-deprecated.html"], _a.raw = ["Any usage of an identifier\n with the @deprecated JSDoc annotation will trigger a warning.\n See http://usejsdoc.org/tags-deprecated.html"], Lint.Utils.dedent(_a)),
+ descriptionDetails: Lint.Utils.dedent(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["Any usage of an identifier\n with the @deprecated JSDoc annotation will trigger a warning.\n See http://usejsdoc.org/tags-deprecated.html"], ["Any usage of an identifier\n with the @deprecated JSDoc annotation will trigger a warning.\n See http://usejsdoc.org/tags-deprecated.html"]))),
rationale: "Deprecated APIs should be avoided, and usage updated.",
optionsDescription: "",
options: null,
- optionExamples: [],
+ optionExamples: [true],
type: "maintainability",
typescriptOnly: false,
requiresTypeInfo: true,
@@ -137,7 +137,7 @@ function getDeprecation(node, tc) {
else {
symbol = tc.getSymbolAtLocation(node);
}
- if (symbol !== undefined && Lint.isSymbolFlagSet(symbol, ts.SymbolFlags.Alias)) {
+ if (symbol !== undefined && tsutils_1.isSymbolFlagSet(symbol, ts.SymbolFlags.Alias)) {
symbol = tc.getAliasedSymbol(symbol);
}
if (symbol === undefined ||
@@ -152,7 +152,7 @@ function findDeprecationTag(tags) {
for (var _i = 0, tags_1 = tags; _i < tags_1.length; _i++) {
var tag = tags_1[_i];
if (tag.name === "deprecated") {
- return tag.text;
+ return tag.text === undefined ? "" : tag.text;
}
}
return undefined;
@@ -226,4 +226,4 @@ function isFunctionOrMethod(declarations) {
return false;
}
}
-var _a;
+var templateObject_1;