Skip to content

Commit 639ec91

Browse files
committed
feat: migrate to angular 22
And typescript 6
1 parent ceef296 commit 639ec91

147 files changed

Lines changed: 2983 additions & 2674 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Behavioral guidelines for working in the Mikane (PuddingDebt) repo. Reduce commo
88

99
Mikane is a shared-expense settlement tool. Two deployables in one repo:
1010

11-
- **Frontend**`app/mikane/` — Angular 21 (standalone components, signals where present), Angular Material, RxJS, SCSS. Tests via `ng test` (Vitest under the hood).
11+
- **Frontend**`app/mikane/` — Angular 22 (standalone components, signals where present), Angular Material, RxJS, SCSS. Tests via `ng test` (Vitest under the hood).
1212
- **Backend**`server/` — Express 5 on Node 24, PostgreSQL (via `pg`), session auth (`express-session` + `csrf-sync`). Tests via Vitest + Supertest against a Dockerized test DB.
1313

1414
Layout cheatsheet:

app/mikane/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Mikane — Frontend
22

3-
Angular 21 frontend for [Mikane](../../README.md). For project overview, installation, and backend setup, see the [root README](../../README.md).
3+
Angular 22 frontend for [Mikane](../../README.md). For project overview, installation, and backend setup, see the [root README](../../README.md).
44

55
## Stack
66

7-
- Angular 21 (standalone components, signals where present, `provideZonelessChangeDetection`)
7+
- Angular 22 (standalone components, signals where present, `provideZonelessChangeDetection`)
88
- Angular Material
99
- RxJS, SCSS
1010
- [MSW](https://mswjs.io/) for local mock backend

app/mikane/eslint.config.mjs

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,13 @@
11
import parser from "@angular-eslint/template-parser";
2-
import { FlatCompat } from "@eslint/eslintrc";
3-
import { default as eslint, default as js } from "@eslint/js";
2+
import { default as eslint } from "@eslint/js";
43
import angular from "angular-eslint";
54
import prettier from "eslint-config-prettier";
65
import github from "eslint-plugin-github";
76
import optimizeRegex from "eslint-plugin-optimize-regex";
87
import { defineConfig, globalIgnores } from "eslint/config";
98
import globals from "globals";
10-
import path from "node:path";
11-
import { fileURLToPath } from "node:url";
129
import tseslint from "typescript-eslint";
1310

14-
const __filename = fileURLToPath(import.meta.url);
15-
const __dirname = path.dirname(__filename);
16-
const compat = new FlatCompat({
17-
baseDirectory: __dirname,
18-
recommendedConfig: js.configs.recommended,
19-
allConfig: js.configs.all,
20-
});
21-
2211
export default defineConfig([
2312
globalIgnores(["projects/**/*"]),
2413
{
@@ -75,6 +64,7 @@ export default defineConfig([
7564
},
7665
],
7766
"@angular-eslint/prefer-standalone": "warn",
67+
"@angular-eslint/prefer-on-push-component-change-detection": "warn",
7868
"@typescript-eslint/no-unused-vars": [
7969
"error",
8070
{
@@ -92,7 +82,7 @@ export default defineConfig([
9282
{
9383
files: ["**/*.html"],
9484

95-
extends: compat.extends("plugin:@angular-eslint/template/recommended", "plugin:@angular-eslint/template/accessibility"),
85+
extends: [...angular.configs.templateRecommended, ...angular.configs.templateAccessibility],
9686

9787
languageOptions: {
9888
parser: parser,
@@ -104,7 +94,6 @@ export default defineConfig([
10494
"@angular-eslint/template/prefer-self-closing-tags": "warn",
10595
"@angular-eslint/template/prefer-ngsrc": "warn",
10696
"@angular-eslint/template/prefer-control-flow": "warn",
107-
"@angular-eslint/prefer-on-push-component-change-detection": "off",
10897
},
10998
},
11099
]);

0 commit comments

Comments
 (0)