From d5baacd56fcfada1461305671516f463ca274f52 Mon Sep 17 00:00:00 2001 From: Nikita Barsukov Date: Wed, 9 Oct 2024 15:06:41 +0300 Subject: [PATCH] chore: remove some redundant `eslint-disable-next-line` --- projects/angular/src/lib/maskito.directive.ts | 1 - .../kit/src/lib/processors/tests/prefix-postprocessor.spec.ts | 3 +-- projects/phone/src/lib/masks/phone/phone-mask.ts | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/projects/angular/src/lib/maskito.directive.ts b/projects/angular/src/lib/maskito.directive.ts index fafb58e5a..9c1c2fd79 100644 --- a/projects/angular/src/lib/maskito.directive.ts +++ b/projects/angular/src/lib/maskito.directive.ts @@ -47,7 +47,6 @@ export class MaskitoDirective implements OnDestroy, OnChanges { const predicateResult = await elementPredicate(elementRef); - // eslint-disable-next-line unicorn/consistent-destructuring if (this.elementPredicate !== elementPredicate || this.options !== options) { // Ignore the result of the predicate if the // maskito element (or its options) has changed before the predicate was resolved. diff --git a/projects/kit/src/lib/processors/tests/prefix-postprocessor.spec.ts b/projects/kit/src/lib/processors/tests/prefix-postprocessor.spec.ts index 932e3561d..5e941e131 100644 --- a/projects/kit/src/lib/processors/tests/prefix-postprocessor.spec.ts +++ b/projects/kit/src/lib/processors/tests/prefix-postprocessor.spec.ts @@ -63,8 +63,7 @@ describe('maskitoPrefixPostprocessorGenerator', () => { ).toEqual({value: 'kg 123', selection: [1, 1]}); }); - // eslint-disable-next-line jest/valid-title - it(' 123 => kg |123', () => { + it(`${' '}123 => kg |123`, () => { expect( postprocessor( {value: ' 123', selection: [0, 0]}, // after diff --git a/projects/phone/src/lib/masks/phone/phone-mask.ts b/projects/phone/src/lib/masks/phone/phone-mask.ts index da24211e8..5d8825144 100644 --- a/projects/phone/src/lib/masks/phone/phone-mask.ts +++ b/projects/phone/src/lib/masks/phone/phone-mask.ts @@ -15,7 +15,6 @@ export function maskitoPhoneOptionsGenerator({ strict?: boolean; separator?: string; }): Required { - // eslint-disable-next-line sonarjs/no-selector-parameter return strict && countryIsoCode ? maskitoPhoneStrictOptionsGenerator({countryIsoCode, metadata, separator}) : maskitoPhoneNonStrictOptionsGenerator({