Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove some redundant eslint-disable-next-line #1773

Merged
merged 1 commit into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading