@forge/lint

5.15.2-next.55.16.0-next.6
out/lint/linters/deprecated-api-module-linter/deprecated-api-module-linter.js
+out/lint/linters/deprecated-api-module-linter/deprecated-api-module-linter.jsNew file
+31
Index: package/out/lint/linters/deprecated-api-module-linter/deprecated-api-module-linter.js
===================================================================
--- package/out/lint/linters/deprecated-api-module-linter/deprecated-api-module-linter.js
+++ package/out/lint/linters/deprecated-api-module-linter/deprecated-api-module-linter.js
@@ -0,0 +1,31 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.DeprecatedApiModuleLinter = void 0;
+const tslib_1 = require("tslib");
+const base_linter_1 = tslib_1.__importDefault(require("../../base-linter"));
+const deprecated_api_module_visitor_1 = require("./deprecated-api-module-visitor");
+const deprecated_api_module_verifier_1 = require("./deprecated-api-module-verifier");
+class DeprecatedApiModuleLinter extends base_linter_1.default {
+    manifest;
+    constructor(environment, manifest, logger) {
+        super(environment, logger);
+        this.manifest = manifest;
+    }
+    addLintCriteriaMatch(match, filepath) {
+        const criteriaMatches = this.matches.get(filepath);
+        criteriaMatches?.deprecatedApiStorage.push(match);
+    }
+    async bootstrap() {
+        this.nodeVisitors = [new deprecated_api_module_visitor_1.DeprecatedApiModuleVisitor()];
+        this.verifiers = {
+            deprecatedApiStorage: new deprecated_api_module_verifier_1.DeprecatedApiModuleVerifier(this.environment, this.manifest)
+        };
+    }
+    setupMatchesMap(filePath) {
+        this.matches.set(filePath, {
+            deprecatedApiStorage: []
+        });
+        this.nodeVisitors = [new deprecated_api_module_visitor_1.DeprecatedApiModuleVisitor()];
+    }
+}
+exports.DeprecatedApiModuleLinter = DeprecatedApiModuleLinter;