eslint-plugin-obsidian
Version:
ESLint rules for Obsidian
20 lines • 607 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Context = void 0;
class Context {
constructor(context) {
this.context = context;
}
/**
* Returns the fully qualified path to the current file being linted.
*/
get currentFilePath() {
var _a, _b;
return (_b = (_a = this.context).getPhysicalFilename) === null || _b === void 0 ? void 0 : _b.call(_a);
}
reportError(node, messageId, data) {
this.context.report({ messageId, node, data });
}
}
exports.Context = Context;
//# sourceMappingURL=context.js.map