Skip to content
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .github/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,9 @@ jobs:
# Install global npm tools
- name: Install global npm dependencies
run: |
npm install -g @angular/cli@latest
npm install -g @angular/cli@latest # Provides 'ng' command
npm install -g typescript@latest
npm install -g eslint@latest
npm install -g prettier@latest
npm install -g @typescript-eslint/parser@latest
npm install -g @typescript-eslint/eslint-plugin@latest

# Install Azure tools
- name: Install Azure tools
Expand Down
11 changes: 4 additions & 7 deletions client/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,9 @@
"files": [
"*.ts"
],
"parserOptions": {
"project": [
"tsconfig.json"
],
"createDefaultProgram": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates"
],
Expand Down Expand Up @@ -42,7 +38,8 @@
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
"plugin:@angular-eslint/template/recommended",
"plugin:@angular-eslint/template/accessibility"
],
"rules": {}
}
Expand Down
43 changes: 41 additions & 2 deletions client/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
"includePaths": [
"node_modules",
"src",
"src/styles"]
"src/styles"
]
},
"outputHashing": "all"
},
Expand Down Expand Up @@ -89,11 +90,49 @@
"options": {
"buildTarget": "app:build"
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
}
}
}
}
},
"cli": {
"analytics": false
"analytics": false,
"schematicCollections": [
"@angular-eslint/schematics"
]
},
"schematics": {
"@schematics/angular:component": {
"type": "component"
},
"@schematics/angular:directive": {
"type": "directive"
},
"@schematics/angular:service": {
"type": "service"
},
"@schematics/angular:guard": {
"typeSeparator": "."
},
"@schematics/angular:interceptor": {
"typeSeparator": "."
},
"@schematics/angular:module": {
"typeSeparator": "."
},
"@schematics/angular:pipe": {
"typeSeparator": "."
},
"@schematics/angular:resolver": {
"typeSeparator": "."
}
}
}
54 changes: 0 additions & 54 deletions client/eslint.config.js

This file was deleted.

28 changes: 28 additions & 0 deletions client/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
const { defaults } = require("jest-config");

module.exports = {
preset: "jest-preset-angular",
testEnvironment: "jsdom",
setupFilesAfterEnv: ["<rootDir>/src/test-setup.ts"],
moduleFileExtensions: ["ts", "tsx", "js", "json"],
transform: {
"^.+\\.(ts|js|html)$": [
"jest-preset-angular",
{
tsconfig: "<rootDir>/tsconfig.spec.json",
stringifyContentPathRegex: "\\.html$",
},
],
},
testMatch: ["<rootDir>/src/**/*.spec.ts"],
collectCoverageFrom: [
"src/**/*.ts",
"!src/**/*.d.ts",
"!src/main.ts",
"!src/polyfills.ts",
"!src/**/*.module.ts",
"!src/**/environment*.ts",
],
coverageDirectory: "coverage",
coverageReporters: ["html", "text-summary", "lcov"]
};
Loading