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",