Update checked-in dependencies
This commit is contained in:
parent
fa428daf9c
commit
b3bf514df4
216 changed files with 4342 additions and 1611 deletions
4
node_modules/eslint-module-utils/pkgUp.js
generated
vendored
4
node_modules/eslint-module-utils/pkgUp.js
generated
vendored
|
|
@ -31,10 +31,13 @@ const path = require('path');
|
|||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/** @type {(filename: string | string[], cwd?: string) => string | null} */
|
||||
function findUp(filename, cwd) {
|
||||
let dir = path.resolve(cwd || '');
|
||||
const root = path.parse(dir).root;
|
||||
|
||||
/** @type {string[]} */ // @ts-expect-error TS sucks with concat
|
||||
const filenames = [].concat(filename);
|
||||
|
||||
// eslint-disable-next-line no-constant-condition
|
||||
|
|
@ -52,6 +55,7 @@ function findUp(filename, cwd) {
|
|||
}
|
||||
}
|
||||
|
||||
/** @type {import('./pkgUp').default} */
|
||||
exports.default = function pkgUp(opts) {
|
||||
return findUp('package.json', opts && opts.cwd);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue