Skip to content

Commit 667fa3f

Browse files
committed
chore: prettier @Format reformat + Angular 20 tooling alignment
- .prettierrc: enable insertPragma + trailing commas - npm run format: repo-wide @Format pragma + trailing commas (no logic changes) - package.json: bump karma to ~6.4.0 (Angular 20 @angular/build peer) - eslint config and docs reformatted
1 parent 6c7ca9b commit 667fa3f

496 files changed

Lines changed: 9829 additions & 9033 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.prettierrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
# @format
2+
13
{
24
"singleQuote": false,
35
"semi": true,
46
"printWidth": 100,
57
"insertPragma": true,
68
"arrowParens": "avoid",
7-
"bracketSameLine": false
9+
"bracketSameLine": false,
810
}

docs/core/guards-models.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ const profileId = Number(route.paramMap.get("id"));
4141
authRepository.fetchProfile().pipe(
4242
map(
4343
profile =>
44-
profile.id === profileId ? true : router.createUrlTree([`/office/profile/${profileId}/`]) // редирект на просмотр
44+
profile.id === profileId ? true : router.createUrlTree([`/office/profile/${profileId}/`]), // редирект на просмотр
4545
),
46-
catchError(() => of(router.createUrlTree(["/auth/login"])))
46+
catchError(() => of(router.createUrlTree(["/auth/login"]))),
4747
);
4848
```
4949

@@ -67,9 +67,9 @@ projectRepository.getOne(projectId).pipe(
6767
map(project =>
6868
project.partnerProgram?.isSubmitted
6969
? router.createUrlTree([`/office/projects/${projectId}`]) // редирект на просмотр
70-
: true
70+
: true,
7171
),
72-
catchError(() => of(router.createUrlTree([`/office/projects/${projectId}`])))
72+
catchError(() => of(router.createUrlTree([`/office/projects/${projectId}`]))),
7373
);
7474
```
7575

docs/modules/feed.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ abstract class FeedRepositoryPort {
4343
fetchFeed(
4444
offset: number,
4545
limit: number,
46-
type: string // "project|vacancy|news" (joined with FILTER_SPLIT_SYMBOL = "|")
46+
type: string, // "project|vacancy|news" (joined with FILTER_SPLIT_SYMBOL = "|")
4747
): Observable<ApiPagination<FeedItem>>;
4848
}
4949
```

docs/modules/industry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export class IndustryRepository implements IndustryRepositoryPort {
8686
getAll(): Observable<Industry[]> {
8787
return this.industryAdapter.fetchAll().pipe(
8888
map(industries => plainToInstance(Industry, industries)),
89-
tap(industries => this.industries.set(industries))
89+
tap(industries => this.industries.set(industries)),
9090
);
9191
}
9292

docs/modules/member.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ abstract class MemberRepositoryPort {
2323
getMembers(
2424
skip: number,
2525
take: number,
26-
otherParams?: Record<string, string | number | boolean>
26+
otherParams?: Record<string, string | number | boolean>,
2727
): Observable<ApiPagination<User>>;
2828
}
2929
```

docs/modules/specializations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ abstract class SpecializationsRepositoryPort {
4646
getSpecializationsInline(
4747
search: string,
4848
limit: number,
49-
offset: number
49+
offset: number,
5050
): Observable<ApiPagination<Specialization>>;
5151
}
5252
```

docs/modules/vacancy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ abstract class VacancyRepositoryPort {
7979
workFormat?,
8080
workSchedule?,
8181
salary?,
82-
searchValue?: string
82+
searchValue?: string,
8383
): Observable<Vacancy[]>;
8484

8585
getMyVacancies(limit, offset): Observable<VacancyResponse[]>; // мои отклики

eslint.config.mjs

Lines changed: 44 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/** @format */
2+
13
import js from "@eslint/js";
24
import ts from "typescript-eslint";
35
import prettier from "eslint-config-prettier";
@@ -6,13 +8,7 @@ import globals from "globals";
68

79
export default ts.config(
810
{
9-
ignores: [
10-
"**/node_modules/**",
11-
"**/dist/**",
12-
"**/coverage/**",
13-
"**/.angular/**",
14-
"**/*.scss",
15-
],
11+
ignores: ["**/node_modules/**", "**/dist/**", "**/coverage/**", "**/.angular/**", "**/*.scss"],
1612
},
1713
js.configs.recommended,
1814
...ts.configs.recommended,
@@ -117,13 +113,48 @@ export default ts.config(
117113
default: "disallow",
118114
rules: [
119115
{ from: { type: "domain" }, allow: { to: { type: ["domain", "core-lib"] } } },
120-
{ from: { type: "infrastructure" }, allow: { to: { type: ["domain", "infrastructure", "core-lib", "utils"] } } },
121-
{ from: { type: "api" }, allow: { to: { type: ["domain", "infrastructure", "api", "core-lib", "utils", "env"] } } },
122-
{ from: { type: "ui" }, allow: { to: { type: ["domain", "infrastructure", "api", "ui", "core-lib", "ui-lib", "utils"] } } },
116+
{
117+
from: { type: "infrastructure" },
118+
allow: { to: { type: ["domain", "infrastructure", "core-lib", "utils"] } },
119+
},
120+
{
121+
from: { type: "api" },
122+
allow: {
123+
to: { type: ["domain", "infrastructure", "api", "core-lib", "utils", "env"] },
124+
},
125+
},
126+
{
127+
from: { type: "ui" },
128+
allow: {
129+
to: {
130+
type: ["domain", "infrastructure", "api", "ui", "core-lib", "ui-lib", "utils"],
131+
},
132+
},
133+
},
123134
{ from: { type: "utils" }, allow: { to: { type: ["domain", "core-lib", "utils"] } } },
124-
{ from: { type: "core-lib" }, allow: { to: { type: ["core-lib", "domain", "utils", "env"] } } },
135+
{
136+
from: { type: "core-lib" },
137+
allow: { to: { type: ["core-lib", "domain", "utils", "env"] } },
138+
},
125139
{ from: { type: "ui-lib" }, allow: { to: { type: ["core-lib", "domain", "ui-lib"] } } },
126-
{ from: { type: "root" }, allow: { to: { type: ["domain", "infrastructure", "api", "ui", "core-lib", "ui-lib", "utils", "env", "root"] } } },
140+
{
141+
from: { type: "root" },
142+
allow: {
143+
to: {
144+
type: [
145+
"domain",
146+
"infrastructure",
147+
"api",
148+
"ui",
149+
"core-lib",
150+
"ui-lib",
151+
"utils",
152+
"env",
153+
"root",
154+
],
155+
},
156+
},
157+
},
127158
],
128159
},
129160
],
@@ -134,5 +165,5 @@ export default ts.config(
134165
rules: {
135166
"boundaries/dependencies": "off",
136167
},
137-
}
168+
},
138169
);

0 commit comments

Comments
 (0)