mirror of
https://git.proxmox.com/git/pve-eslint
synced 2025-08-17 11:44:52 +00:00

includes a (minimal) working wrapper Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
17 lines
414 B
JavaScript
17 lines
414 B
JavaScript
"use strict";
|
|
|
|
const path = require("path");
|
|
|
|
/**
|
|
* Gets the path to the specified parser.
|
|
*
|
|
* @param {string[]} arguments - The path containing the parser.
|
|
* @returns {string} The path to the specified parser.
|
|
*/
|
|
module.exports = function parser() {
|
|
const parts = Array.from(arguments);
|
|
const name = parts.pop();
|
|
|
|
return path.resolve(__dirname, "parsers", parts.join(path.sep), `${name}.js`);
|
|
};
|