UNPKG

536 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var ts = require("typescript");
4var check_node_1 = require("./shared/check-node");
5// tslint:disable-next-line:variable-name
6exports.Rule = check_node_1.createCheckNodeRule(checkNode, "Unexpected this, use functions not classes.");
7function checkNode(node, _ctx) {
8 return node.kind === ts.SyntaxKind.ThisKeyword
9 ? { invalidNodes: [check_node_1.createInvalidNode(node, [])] }
10 : { invalidNodes: [] };
11}
12//# sourceMappingURL=noThisRule.js.map
\No newline at end of file