Skip to content

Commit 8d311bd

Browse files
committed
upgrade deps
delaying upgrade to eslint 10 pending eslint-plugin-import support
1 parent 8fa8013 commit 8d311bd

File tree

16 files changed

+1894
-1613
lines changed

16 files changed

+1894
-1613
lines changed

eslint.config.mjs

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@ import reactPlugin from 'eslint-plugin-react';
66
import reactHooksPlugin from 'eslint-plugin-react';
77
import { internalRulesPlugin } from './resources/eslint-internal-rules/index.js';
88

9-
import {
10-
config as tsConfig,
11-
parser as tsParser,
12-
plugin as tsPlugin,
13-
} from 'typescript-eslint';
9+
import { defineConfig } from 'eslint/config';
1410

15-
export default tsConfig(
11+
import { parser as tsParser, plugin as tsPlugin } from 'typescript-eslint';
12+
13+
export default defineConfig(
1614
{
1715
ignores: [
1816
'eslint.config.mjs',
@@ -55,7 +53,7 @@ export default tsConfig(
5553
'internal-rules/require-to-string-tag': 'off',
5654

5755
//////////////////////////////////////////////////////////////////////////////
58-
// `eslint-plugin-n` rule list based on `v17.21.x`
56+
// `eslint-plugin-n` rule list based on `v17.24.x`
5957
//////////////////////////////////////////////////////////////////////////////
6058

6159
// Rules
@@ -94,9 +92,11 @@ export default tsConfig(
9492
'n/no-unsupported-features/node-builtins': 'error',
9593
'n/prefer-global/buffer': 'error',
9694
'n/prefer-global/console': 'error',
95+
'n/prefer-global/crypto': 'error',
9796
'n/prefer-global/process': 'error',
9897
'n/prefer-global/text-decoder': 'error',
9998
'n/prefer-global/text-encoder': 'error',
99+
'n/prefer-global/timers': 'error',
100100
'n/prefer-global/url': 'error',
101101
'n/prefer-global/url-search-params': 'error',
102102
'n/prefer-node-protocol': 'error',
@@ -230,7 +230,7 @@ export default tsConfig(
230230
'simple-import-sort/exports': 'off', // TODO: error
231231

232232
//////////////////////////////////////////////////////////////////////////////
233-
// ESLint builtin rules list based on `v9.31.x`
233+
// ESLint builtin rules list based on `v9.39.x`
234234
//////////////////////////////////////////////////////////////////////////////
235235

236236
// Possible Errors
@@ -455,6 +455,7 @@ export default tsConfig(
455455
'prefer-rest-params': 'off', // TODO: error
456456
'prefer-spread': 'error',
457457
'prefer-template': 'off',
458+
'preserve-caught-error': 'error',
458459
radix: 'error',
459460
'require-await': 'error',
460461
'require-unicode-regexp': 'off',
@@ -495,7 +496,7 @@ export default tsConfig(
495496
},
496497
rules: {
497498
//////////////////////////////////////////////////////////////////////////
498-
// `@typescript-eslint/eslint-plugin` rule list based on `v8.37.x`
499+
// `@typescript-eslint/eslint-plugin` rule list based on `v8.56.x`
499500
//////////////////////////////////////////////////////////////////////////
500501

501502
// Supported Rules
@@ -603,6 +604,7 @@ export default tsConfig(
603604
'@typescript-eslint/no-unsafe-type-assertion': 'off', // TODO: consider
604605
'@typescript-eslint/no-unsafe-unary-minus': 'error',
605606
'@typescript-eslint/no-unused-expressions': 'off', // now in core
607+
'@typescript-eslint/no-unused-private-class-members': 'error',
606608
'@typescript-eslint/no-unused-vars': [
607609
'error',
608610
{
@@ -617,6 +619,7 @@ export default tsConfig(
617619
],
618620
'@typescript-eslint/no-use-before-define': 'off', // now in core
619621
'@typescript-eslint/no-useless-constructor': 'off', // now in core
622+
'@typescript-eslint/no-useless-default-assignment': 'error',
620623
'@typescript-eslint/no-useless-empty-export': 'error',
621624
'@typescript-eslint/no-wrapper-object-types': 'error',
622625
'@typescript-eslint/non-nullable-type-assertion-style': 'off', //TODO: temporarily disabled
@@ -653,6 +656,7 @@ export default tsConfig(
653656
allowNullableBoolean: true, // TODO: consider removing
654657
},
655658
],
659+
'@typescript-eslint/strict-void-return': 'error',
656660
'@typescript-eslint/switch-exhaustiveness-check': [
657661
'error',
658662
{
@@ -693,6 +697,7 @@ export default tsConfig(
693697
{
694698
files: ['src/**/__*__/**'],
695699
rules: {
700+
'@typescript-eslint/strict-void-return': 'off', // TODO: re-enable when mocha types allow
696701
'local/require-to-string-tag': 'off',
697702
'n/no-unpublished-import': [
698703
'error',

integrationTests/ts/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"typescript-5.5": "npm:typescript@5.5.x",
1919
"typescript-5.6": "npm:typescript@5.6.x",
2020
"typescript-5.7": "npm:typescript@5.7.x",
21-
"typescript-5.8": "npm:typescript@5.8.x"
21+
"typescript-5.8": "npm:typescript@5.8.x",
22+
"typescript-5.9": "npm:typescript@5.8.x"
2223
}
2324
}

0 commit comments

Comments
 (0)