@forge/lint

5.13.0-next.15.13.0-next.2
out/lint/linters/storage-module-linter/visitors/os-node-visitor.js
~out/lint/linters/storage-module-linter/visitors/os-node-visitor.jsModified
+14−10
Index: package/out/lint/linters/storage-module-linter/visitors/os-node-visitor.js
===================================================================
--- package/out/lint/linters/storage-module-linter/visitors/os-node-visitor.js
+++ package/out/lint/linters/storage-module-linter/visitors/os-node-visitor.js
@@ -4,19 +4,23 @@
 const typescript_estree_1 = require("@typescript-eslint/typescript-estree");
 const api_call_interface_1 = require("../api-call-interface");
 class ObjectStoreNodeVisitor {
     visit(node, _parent, callback) {
-        if (node.type === typescript_estree_1.AST_NODE_TYPES.ImportDeclaration && node.source.value === '@forge/os') {
-            node.specifiers.forEach((specifier) => {
-                if (specifier.type === 'ImportDefaultSpecifier' && specifier.local.type === 'Identifier') {
-                    if (specifier.loc) {
-                        callback({
-                            type: api_call_interface_1.ApiCallTypes.OS,
-                            ...specifier.loc.start
-                        });
+        if (node.type === typescript_estree_1.AST_NODE_TYPES.ImportDeclaration) {
+            if (node.type === typescript_estree_1.AST_NODE_TYPES.ImportDeclaration &&
+                (node.source.value === '@forge/os' || node.source.value === `@forge/object-store`)) {
+                node.specifiers.forEach((specifier) => {
+                    if ((specifier.type === 'ImportSpecifier' || specifier.type === 'ImportDefaultSpecifier') &&
+                        specifier.local.type === 'Identifier') {
+                        if (specifier.loc) {
+                            callback({
+                                type: api_call_interface_1.ApiCallTypes.OS,
+                                ...specifier.loc.start
+                            });
+                        }
                     }
-                }
-            });
+                });
+            }
         }
     }
 }
 exports.ObjectStoreNodeVisitor = ObjectStoreNodeVisitor;