Skip to content

Commit

Permalink
chore: remove some redundant eslint-disable-next-line (#1773)
Browse files Browse the repository at this point in the history
  • Loading branch information
nsbarsukov authored Oct 9, 2024
1 parent 5aeb074 commit 68d19fc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion projects/angular/src/lib/maskito.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion projects/phone/src/lib/masks/phone/phone-mask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export function maskitoPhoneOptionsGenerator({
strict?: boolean;
separator?: string;
}): Required<MaskitoOptions> {
// eslint-disable-next-line sonarjs/no-selector-parameter
return strict && countryIsoCode
? maskitoPhoneStrictOptionsGenerator({countryIsoCode, metadata, separator})
: maskitoPhoneNonStrictOptionsGenerator({
Expand Down

0 comments on commit 68d19fc

Please sign in to comment.