try fix v4

This commit is contained in:
Dan Percic 2022-06-20 21:49:13 +03:00
parent 4e6cc26014
commit 5eba24b0da
6 changed files with 40 additions and 17 deletions

View File

@ -1,15 +1,23 @@
{
"extends": ["../../.eslintrc.json"],
"extends": [
"../../.eslintrc.json"
],
"env": {
"browser": true,
"node": true
},
"ignorePatterns": ["!**/*"],
"ignorePatterns": [
"!**/*"
],
"overrides": [
{
"files": ["**/*.ts"],
"files": [
"**/*.ts"
],
"parserOptions": {
"project": ["tsconfig.json"]
"project": [
"tsconfig.json"
]
},
"rules": {
"@angular-eslint/directive-selector": [
@ -41,25 +49,39 @@
"error",
{
"selector": "memberLike",
"modifiers": ["private"],
"format": ["camelCase"],
"modifiers": [
"private"
],
"format": [
"camelCase"
],
"leadingUnderscore": "allow"
},
{
"selector": "memberLike",
"modifiers": ["protected"],
"format": ["camelCase"],
"modifiers": [
"protected"
],
"format": [
"camelCase"
],
"leadingUnderscore": "allow"
},
{
"selector": "memberLike",
"modifiers": ["private"],
"format": ["UPPER_CASE", "camelCase"],
"modifiers": [
"private"
],
"format": [
"UPPER_CASE",
"camelCase"
],
"leadingUnderscore": "allow"
}
],
"no-underscore-dangle": "off",
"no-param-reassign": "error",
"no-dupe-class-members": "off",
"consistent-return": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/lines-between-class-members": "off"

View File

@ -17,11 +17,12 @@ export class ConfirmationDialogService extends DialogService<DialogType> {
},
};
constructor(protected readonly _dialog: MatDialog) {
constructor(protected override readonly _dialog: MatDialog) {
super(_dialog);
}
openDialog(data?): MatDialogRef<unknown> {
// @ts-ignore
override openDialog(data?: { disableConfirm: boolean; [key: string]: unknown }): MatDialogRef<unknown> {
return super.openDialog(
'confirm',
null,

View File

@ -33,7 +33,7 @@ export class EditableInputComponent implements OnChanges {
}
ngOnChanges(changes: SimpleChanges): void {
if (changes.value) {
if (changes['value']) {
this.editing = false;
}
}

View File

@ -26,9 +26,9 @@ export class EntitiesService<E extends IListable, I = E> extends GenericService<
private readonly _all$ = new BehaviorSubject<E[]>([]);
constructor(
protected readonly _injector: Injector,
protected override readonly _injector: Injector,
@Optional() @Inject(ENTITY_CLASS) private readonly _entityClass: new (entityInterface: I, ...args: unknown[]) => E,
@Optional() @Inject(ENTITY_PATH) protected readonly _defaultModelPath = '',
@Optional() @Inject(ENTITY_PATH) protected override readonly _defaultModelPath = '',
) {
super(_injector, _defaultModelPath);
this.all$ = this._all$.asObservable().pipe(shareDistinctLast());

View File

@ -66,7 +66,7 @@ export class TableComponent<T extends IListable> extends AutoUnsubscribe impleme
}
ngOnChanges(changes: SimpleChanges): void {
if (changes.tableColumnConfigs) {
if (changes['tableColumnConfigs']) {
this._setStyles();
}
}

View File

@ -35,7 +35,7 @@ export class ConfirmationDialogInput {
disableConfirm?: boolean;
denyText?: string;
translateParams?: Record<string, unknown>;
checkboxes: CheckBox[];
checkboxes?: CheckBox[];
toastMessage?: string;
constructor(options?: ConfirmationDialogInput) {