odin-default-js-exercises/node_modules/eslint-plugin-import/lib/importDeclaration.js

11 lines
929 B
JavaScript
Raw Normal View History

2017-12-15 18:56:14 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = importDeclaration;
function importDeclaration(context) {
var ancestors = context.getAncestors();
return ancestors[ancestors.length - 1];
}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImltcG9ydERlY2xhcmF0aW9uLmpzIl0sIm5hbWVzIjpbImltcG9ydERlY2xhcmF0aW9uIiwiY29udGV4dCIsImFuY2VzdG9ycyIsImdldEFuY2VzdG9ycyIsImxlbmd0aCJdLCJtYXBwaW5ncyI6Ijs7Ozs7a0JBQXdCQSxpQjtBQUFULFNBQVNBLGlCQUFULENBQTJCQyxPQUEzQixFQUFvQztBQUNqRCxNQUFJQyxZQUFZRCxRQUFRRSxZQUFSLEVBQWhCO0FBQ0EsU0FBT0QsVUFBVUEsVUFBVUUsTUFBVixHQUFtQixDQUE3QixDQUFQO0FBQ0QiLCJmaWxlIjoiaW1wb3J0RGVjbGFyYXRpb24uanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBpbXBvcnREZWNsYXJhdGlvbihjb250ZXh0KSB7XG4gIHZhciBhbmNlc3RvcnMgPSBjb250ZXh0LmdldEFuY2VzdG9ycygpXG4gIHJldHVybiBhbmNlc3RvcnNbYW5jZXN0b3JzLmxlbmd0aCAtIDFdXG59XG4iXX0=