Skip to content

Commit d651963

Browse files
committed
Merged origin/main
2 parents 1ca42db + 83d24a3 commit d651963

40 files changed

Lines changed: 9702 additions & 5616 deletions

.eslintrc.json

Lines changed: 0 additions & 47 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "npm" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"
12+
day: "saturday"
13+
time: "13:01"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Checkout the project at [devtoolbox.raymondsplinter.com][app-url]
1212

1313
## Built with
1414

15-
This is an [Angular][angular-url] 17 project, designed with Angular Material. To learn more about these, checkout the following resources:
15+
This is an [Angular][angular-url] 19 project, designed with Angular Material. To learn more about these, checkout the following resources:
1616

1717
- [Angular][angular-docs-url] - Learn about Angular and its core concepts.
1818
- [Angular Material][angular-material-url] - Learn about Angular Material and its components.

angular.json

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"prefix": "app",
1616
"architect": {
1717
"build": {
18-
"builder": "@angular-devkit/build-angular:application",
18+
"builder": "@angular/build:application",
1919
"options": {
2020
"outputPath": "dist/dev-tool-box",
2121
"index": "src/index.html",
@@ -44,8 +44,8 @@
4444
"budgets": [
4545
{
4646
"type": "initial",
47-
"maximumWarning": "500kb",
48-
"maximumError": "1mb"
47+
"maximumWarning": "1mb",
48+
"maximumError": "2mb"
4949
},
5050
{
5151
"type": "anyComponentStyle",
@@ -64,7 +64,7 @@
6464
"defaultConfiguration": "production"
6565
},
6666
"serve": {
67-
"builder": "@angular-devkit/build-angular:dev-server",
67+
"builder": "@angular/build:dev-server",
6868
"configurations": {
6969
"production": {
7070
"buildTarget": "DevToolBox:build:production"
@@ -76,13 +76,13 @@
7676
"defaultConfiguration": "development"
7777
},
7878
"extract-i18n": {
79-
"builder": "@angular-devkit/build-angular:extract-i18n",
79+
"builder": "@angular/build:extract-i18n",
8080
"options": {
8181
"buildTarget": "DevToolBox:build"
8282
}
8383
},
8484
"test": {
85-
"builder": "@angular-devkit/build-angular:karma",
85+
"builder": "@angular/build:karma",
8686
"options": {
8787
"polyfills": [
8888
"zone.js",
@@ -151,6 +151,33 @@
151151
"@schematics/angular",
152152
"@angular-eslint/schematics",
153153
"@cypress/schematic"
154-
]
154+
],
155+
"analytics": false
156+
},
157+
"schematics": {
158+
"@schematics/angular:component": {
159+
"type": "component"
160+
},
161+
"@schematics/angular:directive": {
162+
"type": "directive"
163+
},
164+
"@schematics/angular:service": {
165+
"type": "service"
166+
},
167+
"@schematics/angular:guard": {
168+
"typeSeparator": "."
169+
},
170+
"@schematics/angular:interceptor": {
171+
"typeSeparator": "."
172+
},
173+
"@schematics/angular:module": {
174+
"typeSeparator": "."
175+
},
176+
"@schematics/angular:pipe": {
177+
"typeSeparator": "."
178+
},
179+
"@schematics/angular:resolver": {
180+
"typeSeparator": "."
181+
}
155182
}
156183
}

cypress/fixtures/timestamps.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"unix": "1704585600",
44
"iso": "2024-01-07T00:00:00.000Z",
55
"utc": "Sun, 07 Jan 2024 00:00:00 GMT",
6-
"weekOfYear": "2",
6+
"weekOfYear": "1",
77
"dayOfWeek": "Sunday",
88
"ymd1": "2024-01-07",
99
"ymd2": "2024/01/07",

eslint.config.js

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
// @ts-check
2+
import js from "@eslint/js";
3+
import plugin from "@typescript-eslint/eslint-plugin";
4+
import angular from "@angular-eslint/eslint-plugin";
5+
import angularTemplate from "@angular-eslint/eslint-plugin-template";
6+
import tsParser from "@typescript-eslint/parser";
7+
import templateParser from "@angular-eslint/template-parser";
8+
9+
export default [
10+
{
11+
ignores: ["projects/**/*", "node_modules/**/*", "dist/**/*", "coverage/**/*"]
12+
},
13+
{
14+
files: ["**/*.ts"],
15+
languageOptions: {
16+
ecmaVersion: 2022,
17+
sourceType: "module",
18+
parser: tsParser,
19+
parserOptions: {
20+
project: ["tsconfig.json", "tsconfig.spec.json"],
21+
createDefaultProgram: true
22+
},
23+
globals: {
24+
// Jasmine globals
25+
describe: "readonly",
26+
it: "readonly",
27+
beforeEach: "readonly",
28+
afterEach: "readonly",
29+
beforeAll: "readonly",
30+
afterAll: "readonly",
31+
expect: "readonly",
32+
spyOn: "readonly",
33+
jasmine: "readonly",
34+
// Browser globals
35+
window: "readonly",
36+
document: "readonly",
37+
navigator: "readonly",
38+
location: "readonly",
39+
customElements: "readonly",
40+
// Global functions
41+
console: "readonly",
42+
btoa: "readonly",
43+
atob: "readonly"
44+
}
45+
},
46+
plugins: {
47+
"@typescript-eslint": plugin,
48+
"@angular-eslint": angular
49+
},
50+
rules: {
51+
...js.configs.recommended.rules,
52+
...plugin.configs.recommended.rules,
53+
...angular.configs.recommended.rules,
54+
"@angular-eslint/directive-selector": [
55+
"error",
56+
{
57+
type: "attribute",
58+
prefix: "app",
59+
style: "camelCase"
60+
}
61+
],
62+
"@angular-eslint/component-selector": [
63+
"error",
64+
{
65+
type: "element",
66+
prefix: "app",
67+
style: "kebab-case"
68+
}
69+
]
70+
}
71+
},
72+
{
73+
files: ["**/*.html"],
74+
languageOptions: {
75+
parser: templateParser
76+
},
77+
plugins: {
78+
"@angular-eslint/template": angularTemplate
79+
},
80+
rules: {
81+
...angularTemplate.configs.recommended.rules,
82+
...angularTemplate.configs.accessibility.rules
83+
}
84+
}
85+
];
86+

0 commit comments

Comments
 (0)