Files
Philipp AandVitor Balocco f1774dd237 Fix: adapt new-paren rule so it handles TypeScript (fixes #7817) (#7820)
* Chore: Extracted fixture parser

* Fix: adapted new-paren rule so it can handle TS (fixes #7817)
2017-01-04 12:50:28 +01:00

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`);
};