fix: configure test typings and root database linting
This commit is contained in:
1 parent
2f7f5ba5af
commit
848e12e2d6
4 files changed
+16
-3
No files matched your search
+1
-1
@@ -122,7 +122,7 @@
|
||||
"lint": {
|
||||
"builder": "@angular-eslint/builder:lint",
|
||||
"options": {
|
||||
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
|
||||
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html", "db.ts"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -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
|
||||
}
|
||||
},
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"noEmit": true,
|
||||
"types": ["jasmine"]
|
||||
},
|
||||
"include": ["src/**/*.ts", "db.ts"]
|
||||
}
|
||||
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user