first commit

This commit is contained in:
2025-10-26 23:10:15 +08:00
commit 8f0345b7be
14961 changed files with 2356381 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
import { AST_NODE_TYPES } from '@typescript-eslint/types';
export const importDeclaration = (context, node) => {
if (node.parent && node.parent.type === AST_NODE_TYPES.ImportDeclaration) {
return node.parent;
}
const ancestors = context.sourceCode.getAncestors(node);
return ancestors[ancestors.length - 1];
};
//# sourceMappingURL=import-declaration.js.map