Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
19 changes: 19 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"test": {
"builder": "@angular/build:unit-test",
"options": {
"buildTarget": "testing:test-polyfills",
"tsConfig": "projects/ngx-auth/tsconfig.spec.json"
}
}
Expand All @@ -48,6 +49,7 @@
"test": {
"builder": "@angular/build:unit-test",
"options": {
"buildTarget": "testing:test-polyfills",
"tsConfig": "projects/ngx-change-sets/tsconfig.spec.json"
}
}
Expand All @@ -74,6 +76,7 @@
"test": {
"builder": "@angular/build:unit-test",
"options": {
"buildTarget": "testing:test-polyfills",
"tsConfig": "projects/ngx-ecommerce/tsconfig.spec.json"
}
}
Expand All @@ -100,6 +103,7 @@
"test": {
"builder": "@angular/build:unit-test",
"options": {
"buildTarget": "testing:test-polyfills",
"setupFiles": ["projects/ngx-entity/test-setup.ts"],
"tsConfig": "projects/ngx-entity/tsconfig.spec.json"
}
Expand Down Expand Up @@ -127,6 +131,7 @@
"test": {
"builder": "@angular/build:unit-test",
"options": {
"buildTarget": "testing:test-polyfills",
"tsConfig": "projects/ngx-error-handling/tsconfig.spec.json"
}
}
Expand All @@ -153,6 +158,7 @@
"test": {
"builder": "@angular/build:unit-test",
"options": {
"buildTarget": "testing:test-polyfills",
"tsConfig": "projects/ngx-navigation/tsconfig.spec.json"
}
}
Expand All @@ -179,6 +185,7 @@
"test": {
"builder": "@angular/build:unit-test",
"options": {
"buildTarget": "testing:test-polyfills",
"tsConfig": "projects/ngx-persistence-logger/tsconfig.spec.json"
}
}
Expand All @@ -205,6 +212,7 @@
"test": {
"builder": "@angular/build:unit-test",
"options": {
"buildTarget": "testing:test-polyfills",
"tsConfig": "projects/ngx-pwa/tsconfig.spec.json"
}
}
Expand All @@ -231,6 +239,7 @@
"test": {
"builder": "@angular/build:unit-test",
"options": {
"buildTarget": "testing:test-polyfills",
"tsConfig": "projects/ngx-tracking/tsconfig.spec.json"
}
}
Expand Down Expand Up @@ -276,6 +285,7 @@
],
"browser": "projects/showcase/src/main.ts",
"outputMode": "static",
"polyfills": ["@angular/localize/init"],
"server": "projects/showcase/src/main.server.ts",
"styles": ["projects/showcase/src/styles.css"],
"tsConfig": "projects/showcase/tsconfig.app.json"
Expand Down Expand Up @@ -338,6 +348,14 @@
}
},
"defaultConfiguration": "production"
},
"test-polyfills": {
"builder": "@angular/build:application",
"options": {
"browser": "projects/testing/src/public-api.ts",
"polyfills": ["@angular/localize/init"],
"tsConfig": "projects/testing/tsconfig.lib.json"
}
}
},
"prefix": "lib",
Expand Down Expand Up @@ -386,6 +404,7 @@
"test": {
"builder": "@angular/build:unit-test",
"options": {
"buildTarget": "testing:test-polyfills",
"setupFiles": ["projects/ui/test-setup.ts"],
"tsConfig": "projects/ui/tsconfig.spec.json"
}
Expand Down
7 changes: 7 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ export default [
'angular/no-call-expression': 'off'
}
},
{
files: ['**/*.ts'],
rules: {
// a polyfill is imported for what it defines, like the $localize of the default texts in the stories.
'eslintImport/no-unassigned-import': ['warn', { allow: ['@angular/localize/init'] }]
}
},
{
// the controls pass their autofocus input on to their native element, like every other native attribute. Only a
// consumer that asks for it gets it, like a control in a popover, which the browser focuses as the popover opens.
Expand Down
Loading
Loading