refactor: remove global animations provider and enable deprecation linting rule
This commit is contained in:
1 parent
9c9114879d
commit
a990e7e971
5 files changed
+3
-8
No files matched your search
@@ -26,6 +26,7 @@ export default [
|
|||||||
'error',
|
'error',
|
||||||
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
|
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
|
||||||
],
|
],
|
||||||
|
'@typescript-eslint/no-deprecated': 'error',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ import {
|
|||||||
withEventReplay,
|
withEventReplay,
|
||||||
withIncrementalHydration,
|
withIncrementalHydration,
|
||||||
} from '@angular/platform-browser';
|
} from '@angular/platform-browser';
|
||||||
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
|
|
||||||
|
|
||||||
export const appConfig: ApplicationConfig = {
|
export const appConfig: ApplicationConfig = {
|
||||||
providers: [
|
providers: [
|
||||||
@@ -19,6 +18,5 @@ export const appConfig: ApplicationConfig = {
|
|||||||
provideZonelessChangeDetection(),
|
provideZonelessChangeDetection(),
|
||||||
provideRouter(routes),
|
provideRouter(routes),
|
||||||
provideClientHydration(withEventReplay(), withIncrementalHydration()),
|
provideClientHydration(withEventReplay(), withIncrementalHydration()),
|
||||||
provideAnimationsAsync(),
|
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
import { provideZonelessChangeDetection } from '@angular/core';
|
import { provideZonelessChangeDetection } from '@angular/core';
|
||||||
import { RulesPanel } from './rules-panel';
|
import { RulesPanel } from './rules-panel';
|
||||||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
||||||
import { RuleService, RuleType } from '../../services/rule-service';
|
import { RuleService, RuleType } from '../../services/rule-service';
|
||||||
import { TranslationService } from '../../services/translation-service';
|
import { TranslationService } from '../../services/translation-service';
|
||||||
|
|
||||||
@@ -14,7 +13,7 @@ describe('RulesPanel', () => {
|
|||||||
localStorage.clear();
|
localStorage.clear();
|
||||||
|
|
||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
imports: [RulesPanel, BrowserAnimationsModule],
|
imports: [RulesPanel],
|
||||||
providers: [provideZonelessChangeDetection(), RuleService],
|
providers: [provideZonelessChangeDetection(), RuleService],
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
import { provideZonelessChangeDetection } from '@angular/core';
|
import { provideZonelessChangeDetection } from '@angular/core';
|
||||||
import { UserInput } from './user-input';
|
import { UserInput } from './user-input';
|
||||||
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
|
|
||||||
import { UserInputService } from '../../services/user-input-service';
|
import { UserInputService } from '../../services/user-input-service';
|
||||||
|
|
||||||
describe('UserInput', () => {
|
describe('UserInput', () => {
|
||||||
@@ -12,7 +11,7 @@ describe('UserInput', () => {
|
|||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
imports: [UserInput],
|
imports: [UserInput],
|
||||||
providers: [provideZonelessChangeDetection(), provideAnimationsAsync()],
|
providers: [provideZonelessChangeDetection()],
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
|
|
||||||
fixture = TestBed.createComponent(UserInput);
|
fixture = TestBed.createComponent(UserInput);
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
|
|
||||||
|
|
||||||
import { DayInput } from './day-input';
|
import { DayInput } from './day-input';
|
||||||
import { SelectableDayType, VacDay } from '../../../services/calendar-service';
|
import { SelectableDayType, VacDay } from '../../../services/calendar-service';
|
||||||
@@ -18,7 +17,6 @@ describe('DayInput', () => {
|
|||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
imports: [DayInput],
|
imports: [DayInput],
|
||||||
providers: [provideAnimationsAsync()],
|
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
|
|
||||||
fixture = TestBed.createComponent(DayInput);
|
fixture = TestBed.createComponent(DayInput);
|
||||||
|
|||||||
Reference in new issue
Block a user