diff --git a/lib/options-manager.js b/lib/options-manager.js index 0425220b..6e4e3d0f 100644 --- a/lib/options-manager.js +++ b/lib/options-manager.js @@ -1,10 +1,9 @@ -import {promises as fs} from 'node:fs'; +import {existsSync, promises as fs} from 'node:fs'; import process from 'node:process'; import os from 'node:os'; import path from 'node:path'; import arrify from 'arrify'; import {mergeWith, flow, pick} from 'lodash-es'; -import pathExists from 'path-exists'; import findUp from 'find-up'; import findCacheDir from 'find-cache-dir'; import prettier from 'prettier'; @@ -362,7 +361,7 @@ const buildExtendsConfig = options => config => { if (options.extends && options.extends.length > 0) { const configs = options.extends.map(name => { // Don't do anything if it's a filepath - if (pathExists.sync(name)) { + if (existsSync(name)) { return name; } diff --git a/package.json b/package.json index ea2c8a44..08ba5c9c 100644 --- a/package.json +++ b/package.json @@ -79,14 +79,12 @@ "get-stdin": "^9.0.0", "globby": "^12.0.0", "imurmurhash": "^0.1.4", - "is-path-inside": "^4.0.0", "json-stable-stringify-without-jsonify": "^1.0.1", "json5": "^2.2.0", "lodash-es": "^4.17.21", "meow": "^10.1.1", "micromatch": "^4.0.4", "open-editor": "^3.0.0", - "path-exists": "^4.0.0", "prettier": "^2.3.2", "semver": "^7.3.5", "slash": "^4.0.0",