Skip to content

Commit 004e3b3

Browse files
committedJul 15, 2023
Require Node.js 16
1 parent 4bf9631 commit 004e3b3

File tree

5 files changed

+29
-31
lines changed

5 files changed

+29
-31
lines changed
 

‎.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
node-version:
13+
- 20
1314
- 18
1415
- 16
15-
- 14
1616
steps:
1717
- uses: actions/checkout@v3
1818
- uses: actions/setup-node@v3

‎config/plugins.cjs

+3
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ module.exports = {
153153
},
154154
],
155155

156+
// Temporarily disabled because it's buggy with TypeScript: https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2175
157+
'unicorn/no-empty-file': 'off',
158+
156159
// TODO: Disabled for now until it becomes more stable: https://github.com/sindresorhus/eslint-plugin-unicorn/search?q=consistent-destructuring+is:issue&state=open&type=issues
157160
'unicorn/consistent-destructuring': 'off',
158161

‎package.json

+19-24
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"type": "module",
1414
"bin": "./cli.js",
1515
"engines": {
16-
"node": ">=14.16"
16+
"node": ">=16"
1717
},
1818
"scripts": {
1919
"test:clean": "find ./test -type d -name 'node_modules' -prune -not -path ./test/fixtures/project/node_modules -exec rm -rf '{}' +",
@@ -52,59 +52,54 @@
5252
"javascript",
5353
"typescript"
5454
],
55-
"bundledDependencies": [
56-
"@typescript-eslint/eslint-plugin",
57-
"@typescript-eslint/parser",
58-
"eslint-config-xo-typescript"
59-
],
6055
"dependencies": {
61-
"@eslint/eslintrc": "^1.3.3",
62-
"@typescript-eslint/eslint-plugin": "^5.59.1",
63-
"@typescript-eslint/parser": "^5.59.1",
56+
"@eslint/eslintrc": "^2.1.0",
57+
"@typescript-eslint/eslint-plugin": "^6.0.0",
58+
"@typescript-eslint/parser": "^6.0.0",
6459
"arrify": "^3.0.0",
65-
"cosmiconfig": "^8.1.3",
60+
"cosmiconfig": "^8.2.0",
6661
"define-lazy-prop": "^3.0.0",
67-
"eslint": "^8.37.0",
62+
"eslint": "^8.45.0",
6863
"eslint-config-prettier": "^8.8.0",
6964
"eslint-config-xo": "^0.43.1",
70-
"eslint-config-xo-typescript": "^0.57.0",
65+
"eslint-config-xo-typescript": "^1.0.0",
7166
"eslint-formatter-pretty": "^5.0.0",
7267
"eslint-import-resolver-webpack": "^0.13.2",
7368
"eslint-plugin-ava": "^14.0.0",
7469
"eslint-plugin-eslint-comments": "^3.2.0",
7570
"eslint-plugin-import": "^2.27.5",
76-
"eslint-plugin-n": "^15.7.0",
71+
"eslint-plugin-n": "^16.0.1",
7772
"eslint-plugin-no-use-extend-native": "^0.5.0",
78-
"eslint-plugin-prettier": "^4.2.1",
79-
"eslint-plugin-unicorn": "^46.0.0",
73+
"eslint-plugin-prettier": "^5.0.0",
74+
"eslint-plugin-unicorn": "^48.0.0",
8075
"esm-utils": "^4.1.2",
8176
"find-cache-dir": "^4.0.0",
8277
"find-up": "^6.3.0",
8378
"get-stdin": "^9.0.0",
84-
"get-tsconfig": "^4.5.0",
85-
"globby": "^13.1.2",
79+
"get-tsconfig": "^4.6.2",
80+
"globby": "^13.2.2",
8681
"imurmurhash": "^0.1.4",
8782
"json-stable-stringify-without-jsonify": "^1.0.1",
8883
"lodash-es": "^4.17.21",
89-
"meow": "^11.0.0",
84+
"meow": "^12.0.1",
9085
"micromatch": "^4.0.5",
9186
"open-editor": "^4.0.0",
92-
"prettier": "^2.8.7",
93-
"semver": "^7.3.8",
94-
"slash": "^5.0.0",
87+
"prettier": "^3.0.0",
88+
"semver": "^7.5.4",
89+
"slash": "^5.1.0",
9590
"to-absolute-glob": "^3.0.0",
96-
"typescript": "^5.0.3"
91+
"typescript": "^5.1.6"
9792
},
9893
"devDependencies": {
99-
"ava": "^5.1.0",
94+
"ava": "^5.3.1",
10095
"eslint-config-xo-react": "^0.27.0",
10196
"eslint-plugin-react": "^7.31.10",
10297
"eslint-plugin-react-hooks": "^4.6.0",
10398
"execa": "^7.1.1",
10499
"nyc": "^15.1.0",
105100
"proxyquire": "^2.1.3",
106101
"temp-write": "^5.0.0",
107-
"webpack": "^5.77.0"
102+
"webpack": "^5.88.1"
108103
},
109104
"xo": {
110105
"ignores": [

‎readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ It uses [ESLint](https://eslint.org) underneath, so issues regarding built-in ru
3939

4040
## Install
4141

42-
```
43-
$ npm install xo --save-dev
42+
```sh
43+
npm install xo --save-dev
4444
```
4545

4646
*You must install XO locally. You can run it directly with `$ npx xo`.*

‎test/options-manager.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ test('buildConfig: prettier: true', t => {
9999
trailingComma: 'all',
100100
}]);
101101
// eslint-prettier-config must always be last
102-
t.is(config.baseConfig.extends[config.baseConfig.extends.length - 1], 'plugin:prettier/recommended');
102+
t.is(config.baseConfig.extends.at(-1), 'plugin:prettier/recommended');
103103
// Indent rule is not enabled
104104
t.is(config.baseConfig.rules.indent, undefined);
105105
// Semi rule is not enabled
@@ -125,8 +125,8 @@ test('buildConfig: prettier: true, typescript file', t => {
125125
}]);
126126

127127
// eslint-prettier-config must always be last
128-
t.is(config.baseConfig.extends[config.baseConfig.extends.length - 1], 'plugin:prettier/recommended');
129-
t.regex(config.baseConfig.extends[config.baseConfig.extends.length - 2], /xo-typescript/);
128+
t.is(config.baseConfig.extends.at(-1), 'plugin:prettier/recommended');
129+
t.regex(config.baseConfig.extends.at(-2), /xo-typescript/);
130130

131131
// Indent rule is not enabled
132132
t.is(config.baseConfig.rules.indent, undefined);
@@ -430,7 +430,7 @@ test('buildConfig: extends', t => {
430430
test('buildConfig: typescript', t => {
431431
const config = manager.buildConfig({ts: true, tsConfigPath: './tsconfig.json'});
432432

433-
t.regex(config.baseConfig.extends[config.baseConfig.extends.length - 1], /xo-typescript/);
433+
t.regex(config.baseConfig.extends.at(-1), /xo-typescript/);
434434
t.is(config.baseConfig.parser, require.resolve('@typescript-eslint/parser'));
435435
t.deepEqual(config.baseConfig.parserOptions, {
436436
warnOnUnsupportedTypeScriptVersion: false,

0 commit comments

Comments
 (0)
Please sign in to comment.