Skip to content

Commit

Permalink
chore: remove some redundant eslint-disable-next-line
Browse files Browse the repository at this point in the history
  • Loading branch information
nsbarsukov committed Oct 9, 2024
1 parent 6f640ec commit 034198d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 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
3 changes: 1 addition & 2 deletions projects/angular/src/lib/maskito.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ describe('Maskito Angular package', () => {
[maskito]="options"
/>
`,
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
changeDetection: ChangeDetectionStrategy.Default,
changeDetection: ChangeDetectionStrategy.OnPush,
})
class TestComponent {
public readonly control = new FormControl();
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 034198d

Please sign in to comment.