diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
commit | bbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch) | |
tree | c58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/tslint/lib/rules/noInternalModuleRule.js | |
parent | 003fb34971cf63466184351b4db5f7c67df4f444 (diff) |
update packages
Diffstat (limited to 'node_modules/tslint/lib/rules/noInternalModuleRule.js')
-rw-r--r-- | node_modules/tslint/lib/rules/noInternalModuleRule.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/node_modules/tslint/lib/rules/noInternalModuleRule.js b/node_modules/tslint/lib/rules/noInternalModuleRule.js index 06ed07e24..965b8c259 100644 --- a/node_modules/tslint/lib/rules/noInternalModuleRule.js +++ b/node_modules/tslint/lib/rules/noInternalModuleRule.js @@ -17,6 +17,7 @@ */ Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); +var tsutils_1 = require("tsutils"); var ts = require("typescript"); var Lint = require("../index"); var Rule = /** @class */ (function (_super) { @@ -63,10 +64,10 @@ var NoInternalModuleWalker = /** @class */ (function (_super) { NoInternalModuleWalker.prototype.checkModuleDeclaration = function (node, nested) { if (!nested && node.name.kind === ts.SyntaxKind.Identifier && - !Lint.isNodeFlagSet(node, ts.NodeFlags.Namespace) && + !tsutils_1.isNodeFlagSet(node, ts.NodeFlags.Namespace) && // augmenting global uses a special syntax that is allowed // see https://github.com/Microsoft/TypeScript/pull/6213 - !Lint.isNodeFlagSet(node, ts.NodeFlags.GlobalAugmentation)) { + !tsutils_1.isNodeFlagSet(node, ts.NodeFlags.GlobalAugmentation)) { var end = node.name.pos; var start = end - "module".length; this.addFailure(start, end, Rule.FAILURE_STRING, Lint.Replacement.replaceFromTo(start, end, "namespace")); |