fix: run prettier on all file to avoid prettier issue inside PR

This commit is contained in:
thomas
2024-01-07 21:41:36 +01:00
parent 3bc793f6b3
commit c8b7c5d4a6
195 changed files with 575 additions and 452 deletions

View File

@@ -1,5 +1,5 @@
import { defineConfig } from 'cypress';
import { nxComponentTestingPreset } from '@nx/angular/plugins/component-testing';
import { defineConfig } from 'cypress';
export default defineConfig({
component: nxComponentTestingPreset(__filename),

View File

@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />

View File

@@ -5,6 +5,8 @@ import { TableComponent } from './table.component';
standalone: true,
imports: [TableComponent],
selector: 'app-root',
template: ` <app-table /> `,
template: `
<app-table />
`,
})
export class AppComponent {}

View File

@@ -94,7 +94,7 @@ export class TableComponent
private api = inject(FakeBackendService);
readonly issues$ = this.select((s) => s.users).pipe(
tap((t) => console.log('UserNEw ', t))
tap((t) => console.log('UserNEw ', t)),
);
readonly loading$ = this.select((s) => s.loading);
readonly error$ = this.select((s) => s.error);
@@ -124,11 +124,11 @@ export class TableComponent
tap((t) => console.log('user', t)),
tapResponse(
(data) => this.patchState({ users: data, loading: false }),
(err) => this.patchState({ error: err as string, loading: false })
)
)
)
)
(err) => this.patchState({ error: err as string, loading: false }),
),
),
),
),
);
ngAfterViewInit(): void {
@@ -137,7 +137,7 @@ export class TableComponent
this.loadData(
this.select({
sortActive: this.sort.sortChange.pipe(
map((s) => s.active as keyof User)
map((s) => s.active as keyof User),
),
sortDir: this.sort.sortChange.pipe(map((s) => s.direction)),
pageIndex: this.paginator.page.pipe(map((p) => p.pageIndex)),
@@ -146,8 +146,8 @@ export class TableComponent
sortActive: this.sort.active as keyof User,
sortDir: this.sort.direction,
pageIndex: 1,
})
)
}),
),
);
}

View File

@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />