eslint-config-xo 3.0.2 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-xo",
3
- "version": "3.0.2",
3
+ "version": "4.0.1",
4
4
  "description": "ESLint shareable config for XO",
5
5
  "license": "MIT",
6
6
  "repository": "xojs/eslint-config-xo",
@@ -57,27 +57,27 @@
57
57
  "@eslint/css": "^2.0.0",
58
58
  "@eslint/json": "^2.1.0",
59
59
  "@eslint/markdown": "^8.0.3",
60
- "@html-eslint/eslint-plugin": "^0.66.0",
60
+ "@html-eslint/eslint-plugin": "^0.66.1",
61
61
  "@stylistic/eslint-plugin": "^5.10.0",
62
62
  "confusing-browser-globals": "^1.0.11",
63
63
  "eslint-config-prettier": "^10.1.8",
64
64
  "eslint-import-resolver-typescript": "^4.4.5",
65
65
  "eslint-node-test": "^0.4.0",
66
- "eslint-package-json": "^0.3.0",
66
+ "eslint-package-json": "^1.0.0",
67
67
  "eslint-plugin-ava": "^17.0.1",
68
68
  "eslint-plugin-import-x": "^4.17.1",
69
- "eslint-plugin-jsdoc": "^64.5.0",
69
+ "eslint-plugin-jsdoc": "^64.5.4",
70
70
  "eslint-plugin-n": "^18.3.0",
71
71
  "eslint-plugin-prettier": "^5.5.6",
72
72
  "eslint-plugin-regexp": "^3.3.0",
73
- "eslint-plugin-unicorn": "^75.0.0",
73
+ "eslint-plugin-unicorn": "^76.0.0",
74
74
  "globals": "^17.12.0",
75
75
  "typescript-eslint": "^8.70.0"
76
76
  },
77
77
  "devDependencies": {
78
78
  "ava": "^8.0.1",
79
- "eslint": "^10.10.0",
80
- "prettier": "^3.9.6",
79
+ "eslint": "^10.11.0",
80
+ "prettier": "^3.9.8",
81
81
  "typescript": "^6.0.3"
82
82
  },
83
83
  "peerDependencies": {
@@ -343,6 +343,22 @@ export const typescriptRules = {
343
343
  checkThenables: true,
344
344
  ignoreVoid: true, // Prepend a function call with `void` to mark it as not needing to be await'ed, which silences this rule.
345
345
  ignoreIIFE: true,
346
+ // `node:test` functions return promises that do not need to be awaited.
347
+ allowForKnownSafeCalls: [
348
+ {
349
+ from: 'package',
350
+ package: 'node:test',
351
+ name: [
352
+ 'test',
353
+ 'it',
354
+ 'describe',
355
+ 'suite',
356
+ 'skip',
357
+ 'todo',
358
+ 'only',
359
+ ],
360
+ },
361
+ ],
346
362
  },
347
363
  ],
348
364
  '@typescript-eslint/no-for-in-array': 'error',