Skip to content

Commit d95b6e3

Browse files
fix(deps): update dependency find-up to v8 (#324)
* fix(deps): update dependency find-up to v8 * fix: use `findUpSync` --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Pelle Wessman <[email protected]>
1 parent fe4ba92 commit d95b6e3

3 files changed

Lines changed: 101 additions & 10 deletions

File tree

lib/resolve-gitignore.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const path = require('node:path')
55

66
// @ts-ignore - There's no types for the cjs file of this package
77
const { gitignoreToMinimatch } = require('@humanwhocodes/gitignore-to-minimatch')
8-
const findUp = require('find-up')
8+
const { findUpSync } = require('find-up')
99

1010
const FLAT_CONFIG_FILENAMES = [
1111
'eslint.config.js',
@@ -25,7 +25,7 @@ const FLAT_CONFIG_FILENAMES = [
2525
* @returns {string|undefined} The filename if found or `undefined` if not.
2626
*/
2727
function findFlatConfigFileSync () {
28-
return findUp.sync(FLAT_CONFIG_FILENAMES)
28+
return findUpSync(FLAT_CONFIG_FILENAMES)
2929
}
3030

3131
/**

package-lock.json

Lines changed: 98 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
"eslint-plugin-n": "^17.23.2",
9191
"eslint-plugin-promise": "^7.2.1",
9292
"eslint-plugin-react": "^7.37.5",
93-
"find-up": "^5.0.0",
93+
"find-up": "^8.0.0",
9494
"globals": "^17.3.0",
9595
"peowly": "^1.3.3",
9696
"typescript-eslint": "^8.56.0"

0 commit comments

Comments
 (0)