Skip to content

Commit

Permalink
✏️ Fix line length issues to conform to max-len rule
Browse files Browse the repository at this point in the history
  • Loading branch information
ckersey2 committed Jul 20, 2024
1 parent 76c58ae commit 124df2e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/paginator-ui-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import type {
Nullable,
} from '../internal/types';

export type PaginatorActionIdFn = StringReturnableFn<PaginatorState & { buttonId: PaginatorButtonId }>;
export type PaginatorActionIdFn =

Check failure on line 13 in src/components/paginator-ui-component.ts

View workflow job for this annotation

GitHub Actions / Lint, Test, and Build on Node.js 12.x

Trailing spaces not allowed

Check failure on line 13 in src/components/paginator-ui-component.ts

View workflow job for this annotation

GitHub Actions / Lint, Test, and Build on Node.js 13.x

Trailing spaces not allowed

Check failure on line 13 in src/components/paginator-ui-component.ts

View workflow job for this annotation

GitHub Actions / Lint, Test, and Build on Node.js 14.x

Trailing spaces not allowed
StringReturnableFn<PaginatorState & { buttonId: PaginatorButtonId }>;

export interface PageCountTextFnParams {
page: number;
Expand All @@ -30,7 +31,8 @@ interface PaginatorUIComponentParams<T> {
builderFunction: PaginatorBuilderFn<T>;
}

const defaultPageCountText = ({ page, totalPages }: PageCountTextFnParams) => `Page ${page} of ${totalPages}`;
const defaultPageCountText = ({ page, totalPages }: PageCountTextFnParams) =>

Check failure on line 34 in src/components/paginator-ui-component.ts

View workflow job for this annotation

GitHub Actions / Lint, Test, and Build on Node.js 12.x

Trailing spaces not allowed

Check failure on line 34 in src/components/paginator-ui-component.ts

View workflow job for this annotation

GitHub Actions / Lint, Test, and Build on Node.js 13.x

Trailing spaces not allowed

Check failure on line 34 in src/components/paginator-ui-component.ts

View workflow job for this annotation

GitHub Actions / Lint, Test, and Build on Node.js 14.x

Trailing spaces not allowed
`Page ${page} of ${totalPages}`;

Check failure on line 35 in src/components/paginator-ui-component.ts

View workflow job for this annotation

GitHub Actions / Lint, Test, and Build on Node.js 12.x

Expected no linebreak before this expression

Check failure on line 35 in src/components/paginator-ui-component.ts

View workflow job for this annotation

GitHub Actions / Lint, Test, and Build on Node.js 13.x

Expected no linebreak before this expression

Check failure on line 35 in src/components/paginator-ui-component.ts

View workflow job for this annotation

GitHub Actions / Lint, Test, and Build on Node.js 14.x

Expected no linebreak before this expression

export class PaginatorUIComponent<T> {
private readonly items: T[];
Expand Down

0 comments on commit 124df2e

Please sign in to comment.