From 848e12e2d6cac57bba1b12df8f8279b7c59bedb0 Mon Sep 17 00:00:00 2001 From: Richard Toth Date: Mon, 2 Nov 2026 18:00:01 +0100 Subject: [PATCH] fix: configure test typings and root database linting --- angular.json | 2 +- eslint.config.cjs | 4 ++-- tsconfig.eslint.json | 8 ++++++++ tsconfig.json | 5 +++++ 4 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 tsconfig.eslint.json diff --git a/angular.json b/angular.json index 247d212..7557a53 100644 --- a/angular.json +++ b/angular.json @@ -122,7 +122,7 @@ "lint": { "builder": "@angular-eslint/builder:lint", "options": { - "lintFilePatterns": ["src/**/*.ts", "src/**/*.html"] + "lintFilePatterns": ["src/**/*.ts", "src/**/*.html", "db.ts"] } } } diff --git a/eslint.config.cjs b/eslint.config.cjs index db2a829..c494f7f 100644 --- a/eslint.config.cjs +++ b/eslint.config.cjs @@ -4,11 +4,11 @@ const angular = require('angular-eslint'); module.exports = defineConfig( { ignores: ['projects/**', 'www/**', 'coverage/**'] }, { - files: ['src/**/*.ts'], + files: ['src/**/*.ts', 'db.ts'], extends: angular.configs.tsRecommended, languageOptions: { parserOptions: { - project: ['./tsconfig.json'], + project: ['./tsconfig.eslint.json'], tsconfigRootDir: __dirname } }, diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json new file mode 100644 index 0000000..b7b37dc --- /dev/null +++ b/tsconfig.eslint.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "noEmit": true, + "types": ["jasmine"] + }, + "include": ["src/**/*.ts", "db.ts"] +} diff --git a/tsconfig.json b/tsconfig.json index 3af78f9..883082b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,11 @@ /* To learn more about this file see: https://angular.io/config/tsconfig. */ { "compileOnSave": false, + "files": [], + "references": [ + { "path": "./tsconfig.app.json" }, + { "path": "./tsconfig.spec.json" } + ], "compilerOptions": { "paths": { "db": ["./db.ts"] }, "outDir": "./dist/out-tsc",