Skip to content

Commit 4c9fb0e

Browse files
committed
Require Node.js 20.17
1 parent 0a16b04 commit 4c9fb0e

File tree

3 files changed

+24
-24
lines changed

3 files changed

+24
-24
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
node-version:
13+
- 24
1314
- 22
1415
- 20
15-
- 18
1616
steps:
1717
- uses: actions/checkout@v4
1818
- uses: actions/setup-node@v4

lib/xo.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import path from 'node:path';
22
import os from 'node:os';
33
import process from 'node:process';
44
import {ESLint, type Linter} from 'eslint';
5-
import findCacheDir from 'find-cache-dir';
5+
import findCacheDirectory from 'find-cache-directory';
66
import {globby} from 'globby';
77
import arrify from 'arrify';
88
import defineLazyProperty from 'define-lazy-prop';
@@ -147,7 +147,7 @@ export class Xo {
147147

148148
const backupCacheLocation = path.join(os.tmpdir(), cacheDirName);
149149

150-
this.cacheLocation = findCacheDir({name: cacheDirName, cwd: this.linterOptions.cwd}) ?? backupCacheLocation;
150+
this.cacheLocation = findCacheDirectory({name: cacheDirName, cwd: this.linterOptions.cwd}) ?? backupCacheLocation;
151151
}
152152

153153
/**

package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"sideEffects": false,
2020
"engines": {
21-
"node": ">=18.20"
21+
"node": ">=20.17"
2222
},
2323
"scripts": {
2424
"build": "npm run clean && tsc",
@@ -65,53 +65,53 @@
6565
"typescript"
6666
],
6767
"dependencies": {
68-
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
68+
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
6969
"@sindresorhus/tsconfig": "^7.0.0",
7070
"@stylistic/eslint-plugin": "^4.2.0",
71-
"@typescript-eslint/parser": "^8.29.0",
71+
"@typescript-eslint/parser": "^8.32.1",
7272
"arrify": "^3.0.0",
7373
"cosmiconfig": "^9.0.0",
7474
"define-lazy-prop": "^3.0.0",
75-
"eslint": "^9.23.0",
76-
"eslint-config-prettier": "^10.1.1",
75+
"eslint": "^9.27.0",
76+
"eslint-config-prettier": "^10.1.5",
7777
"eslint-config-xo-react": "^0.28.0",
7878
"eslint-config-xo-typescript": "^7.0.0",
7979
"eslint-formatter-pretty": "^6.0.1",
8080
"eslint-plugin-ava": "^15.0.1",
81-
"eslint-plugin-import-x": "^4.10.0",
82-
"eslint-plugin-n": "^17.17.0",
81+
"eslint-plugin-import-x": "^4.12.2",
82+
"eslint-plugin-n": "^17.18.0",
8383
"eslint-plugin-no-use-extend-native": "^0.7.2",
84-
"eslint-plugin-prettier": "^5.2.6",
84+
"eslint-plugin-prettier": "^5.4.0",
8585
"eslint-plugin-promise": "^7.2.1",
86-
"eslint-plugin-unicorn": "^58.0.0",
87-
"find-cache-dir": "^5.0.0",
86+
"eslint-plugin-unicorn": "^59.0.1",
87+
"find-cache-directory": "^6.0.0",
8888
"get-stdin": "^9.0.0",
89-
"get-tsconfig": "^4.10.0",
90-
"globals": "^16.0.0",
89+
"get-tsconfig": "^4.10.1",
90+
"globals": "^16.1.0",
9191
"globby": "^14.1.0",
9292
"meow": "^13.2.0",
9393
"micromatch": "^4.0.8",
9494
"open-editor": "^5.1.0",
9595
"path-exists": "^5.0.0",
9696
"prettier": "^3.5.3",
97-
"type-fest": "^4.39.1",
98-
"typescript-eslint": "^8.29.0"
97+
"type-fest": "^4.41.0",
98+
"typescript-eslint": "^8.32.1"
9999
},
100100
"devDependencies": {
101-
"@commitlint/cli": "^19.8.0",
102-
"@commitlint/config-conventional": "^19.8.0",
101+
"@commitlint/cli": "^19.8.1",
102+
"@commitlint/config-conventional": "^19.8.1",
103103
"@types/eslint": "9.6.1",
104104
"@types/micromatch": "^4.0.9",
105105
"@types/prettier": "^3.0.0",
106-
"ava": "^6.2.0",
107-
"dedent": "^1.5.3",
108-
"execa": "^9.5.2",
106+
"ava": "^6.3.0",
107+
"dedent": "^1.6.0",
108+
"execa": "^9.5.3",
109109
"husky": "^9.1.7",
110-
"lint-staged": "^15.5.0",
110+
"lint-staged": "^16.0.0",
111111
"np": "^10.2.0",
112112
"npm-package-json-lint": "^8.0.0",
113113
"npm-package-json-lint-config-default": "^7.0.1",
114-
"prettier-plugin-packagejson": "^2.5.10",
114+
"prettier-plugin-packagejson": "^2.5.14",
115115
"temp-dir": "^3.0.0",
116116
"xo": "file:."
117117
},

0 commit comments

Comments
 (0)