markdownlint-cli2 0.17.1 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +0,0 @@
1
- // @ts-check
2
-
3
- /**
4
- * Wrapper for calling Node's require.resolve with additional paths.
5
- * @param {object} require Node's require implementation (or equivalent).
6
- * @param {string} request Module path to require.
7
- * @param {string[]} paths Paths to resolve module location from.
8
- * @returns {string} Resolved file name.
9
- */
10
- const resolveModule = (require, request, paths) => {
11
- const resolvePaths = require.resolve.paths ? require.resolve.paths("") : [];
12
- const allPaths = [ ...paths, ...resolvePaths ];
13
- return require.resolve(request, { "paths": allPaths });
14
- };
15
-
16
- export default resolveModule;