mirror of
https://github.com/hanzoai/eslint.git
synced 2026-10-30 19:38:10 +00:00
* Chore: Extracted fixture parser * Fix: adapted new-paren rule so it can handle TS (fixes #7817)
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`);
|
|
};
|