Skip to content

Commit ffb57e7

Browse files
Update deps major versions (#2)
* Update cross-env from ^7.0.3 to ^10.1.0 * Update rimraf from ^5.0.10 to ^6.1.2 * Update dotenv from ^16.6.1 to ^17.2.3 * Update color-convert from ^2.0.1 to ^3.1.3 * Update babel-loader from ^9.2.1 to ^10.0.0 * Update copy-webpack-plugin from ^12.0.2 to ^13.0.1 * Update sass-loader from ^14.2.1 to ^16.0.6 * Update webpack-cli from ^5.1.4 to ^6.0.1 * Update puppeteer from ^22.15.0 to ^23.0.0 * Update puppeteer from ^23.0.0 to ^24.0.0 * Update express from ^4.22.1 to ^5.2.1 * Update eslint-plugin-react-hooks from ^4.6.2 to ^7.0.1 * Update envalid from ^7.3.1 to ^8.1.1 Envalid v8 improved TypeScript types for optional fields, now correctly typing fields with default: undefined as T | undefined instead of T. Updated index.ts to handle the stricter types: - Convert MANAGER_WORKER_MAX_MEMORY undefined to null using ?? operator - Use non-null assertions for SSL cert/key files (validated by getEnv) * Update eslint-import-resolver-typescript from ^3.10.1 to ^4.4.4 * Update @octokit/webhooks from ^13.9.1 to ^14.2.0 * Update better-sqlite3 from ^9.6.0 to ^10.0.0 * Update better-sqlite3 from ^10.0.0 to ^11.0.0 * Update better-sqlite3 from ^11.0.0 to ^12.0.0 * Update maxmind from ^4.3.29 to ^5.0.1 * Update ts-proto from ^1.181.2 to ^2.8.3 * Update @types/node from ^20.19.26 to ^25.0.1 @types/node v25 adds Symbol.dispose to MapIterator for explicit resource management. Updated TimedMap to: - Change return types from IterableIterator to MapIterator - Add [Symbol.dispose]() method to custom iterators - Fix iterator return values to use undefined instead of null when done * Update jest and @types/jest from ^29.x to ^30.x Updated across all packages: - @jest/globals: ^29.7.0 → ^30.2.0 - @types/jest: ^29.5.14 → ^30.0.0 - jest: ^29.7.0 → ^30.2.0 Added @jest/globals as devDependency to backend package for test files. All tests passing with Jest v30. * Update ESLint to v9 and @typescript-eslint to v8 Major changes: - eslint: ^8.57.1 → ^9.39.2 - @typescript-eslint/eslint-plugin: ^7.18.0 → ^8.49.0 - @typescript-eslint/parser: ^7.18.0 → ^8.49.0 Migration to ESLint 9 flat config: - Converted .eslintrc.cjs to eslint.config.cjs - Installed @eslint/js, @eslint/compat, @eslint/eslintrc, globals - Installed typescript-eslint for v8 compatibility - Used FlatCompat for backward compatibility with extends - Removed all package-level .eslintrc files ESLint 9 now uses flat config by default. The new config uses FlatCompat to maintain compatibility with existing plugin configs while migrating to the new format. All tests passing and linting works across all packages. * Format * Remove deprecated @types/lz-string, use native types The @types/lz-string package is deprecated - lz-string provides its own TypeScript definitions. Removed the unnecessary @types package from web dependencies and simplified tsconfig.json to use auto-discovery for lz-string types. * Replace deprecated Sass color functions with color.adjust() Replaced lighten() and darken() with color.adjust() to fix Sass deprecation warnings. These functions are deprecated in Dart Sass and will be removed in version 3.0.0. Changes: - Added @use "sass:color" to theme.scss - Replaced lighten($color, X%) with color.adjust($color, $lightness: X%) - Replaced darken($color, X%) with color.adjust($color, $lightness: -X%)
1 parent 8037429 commit ffb57e7

22 files changed

Lines changed: 20546 additions & 22331 deletions

File tree

.eslintrc.cjs renamed to eslint.config.cjs

Lines changed: 35 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,36 @@
1-
// eslint-disable-next-line no-undef
2-
module.exports = {
3-
extends: [
4-
"eslint:recommended",
5-
"plugin:@typescript-eslint/eslint-recommended",
6-
"plugin:@typescript-eslint/recommended",
7-
"plugin:import/typescript",
8-
],
9-
env: {
10-
es6: true,
1+
const { fixupConfigRules, fixupPluginRules } = require("@eslint/compat");
2+
const { FlatCompat } = require("@eslint/eslintrc");
3+
const js = require("@eslint/js");
4+
const typescriptEslint = require("@typescript-eslint/eslint-plugin");
5+
const tsParser = require("@typescript-eslint/parser");
6+
const _import = require("eslint-plugin-import");
7+
8+
const compat = new FlatCompat({
9+
baseDirectory: __dirname,
10+
recommendedConfig: js.configs.recommended,
11+
allConfig: js.configs.all,
12+
});
13+
14+
module.exports = [{
15+
ignores: [".eslintrc.*"],
16+
}, ...fixupConfigRules(compat.extends(
17+
"eslint:recommended",
18+
"plugin:@typescript-eslint/eslint-recommended",
19+
"plugin:@typescript-eslint/recommended",
20+
"plugin:import/typescript",
21+
)).map(config => ({
22+
...config,
23+
languageOptions: {
24+
globals: {},
25+
parser: tsParser,
26+
parserOptions: {
27+
project: "tsconfig.json",
28+
},
1129
},
12-
ignorePatterns: [".eslintrc.*"],
13-
parser: "@typescript-eslint/parser",
14-
parserOptions: {
15-
project: "tsconfig.json",
30+
plugins: {
31+
"@typescript-eslint": fixupPluginRules(typescriptEslint),
32+
"import": fixupPluginRules(_import),
1633
},
17-
plugins: [
18-
"@typescript-eslint",
19-
"import",
20-
],
2134
settings: {
2235
"import/parsers": {
2336
"@typescript-eslint/parser": [".ts", ".tsx"],
@@ -96,8 +109,8 @@ module.exports = {
96109
"quote-props": ["warn", "consistent-as-needed"],
97110
"semi": ["warn", "always"],
98111
"sort-imports": ["warn", {
99-
"ignoreCase": true,
100-
"ignoreDeclarationSort": true,
101-
}]
112+
ignoreCase: true,
113+
ignoreDeclarationSort: true,
114+
}],
102115
},
103-
};
116+
}))];

0 commit comments

Comments
 (0)