Skip to content

Commit

Permalink
style: fix Eslint issues [4]
Browse files Browse the repository at this point in the history
  • Loading branch information
Lodin committed Jan 27, 2025
1 parent 9b78fc2 commit 513ec97
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
7 changes: 3 additions & 4 deletions packages/ts/react-crud/test/autogrid.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,17 @@ import chaiAsPromised from 'chai-as-promised';
import { useEffect, useRef } from 'react';
import sinon from 'sinon';
import sinonChai from 'sinon-chai';
import type { ListService } from '../crud';
import type { HeaderFilterRendererProps } from '../header-filter';
import { AutoGrid, type AutoGridProps, type AutoGridRef } from '../src/autogrid.js';
import type { CountService, CrudService } from '../src/crud.js';
import type { CountService, CrudService, ListService } from '../src/crud.js';
import type { HeaderFilterRendererProps } from '../src/header-filter.js';
import { LocaleContext } from '../src/locale.js';
import type AndFilter from '../src/types/com/vaadin/hilla/crud/filter/AndFilter.js';
import type FilterUnion from '../src/types/com/vaadin/hilla/crud/filter/FilterUnion.js';
import Matcher from '../src/types/com/vaadin/hilla/crud/filter/PropertyStringFilter/Matcher.js';
import type PropertyStringFilter from '../src/types/com/vaadin/hilla/crud/filter/PropertyStringFilter.js';
import type Sort from '../src/types/com/vaadin/hilla/mappedtypes/Sort.js';
import Direction from '../src/types/org/springframework/data/domain/Sort/Direction.js';
import NullHandling from '../src/types/org/springframework/data/domain/Sort/NullHandling.js';
import type FilterUnion from '../types/com/vaadin/hilla/crud/filter/FilterUnion';
import GridController from './GridController.js';
import SelectController from './SelectController.js';
import {
Expand Down
14 changes: 7 additions & 7 deletions packages/ts/react-crud/test/dataprovider.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { GridDataProvider, GridSorterDefinition } from '@vaadin/react-compo
import { expect, use } from 'chai';
import sinon from 'sinon';
import sinonChai from 'sinon-chai';
import type { CountService, ListService } from '../crud.js';
import type { CountService, ListService } from '../src/crud.js';
import {
createDataProvider,
DataProvider,
Expand All @@ -12,12 +12,12 @@ import {
useDataProvider,
type ItemCounts,
} from '../src/data-provider.js';
import type AndFilter from '../src/types/com/vaadin/hilla/crud/filter/AndFilter.js';
import type FilterUnion from '../src/types/com/vaadin/hilla/crud/filter/FilterUnion.js';
import Matcher from '../src/types/com/vaadin/hilla/crud/filter/PropertyStringFilter/Matcher.js';
import type PropertyStringFilter from '../src/types/com/vaadin/hilla/crud/filter/PropertyStringFilter.js';
import type Pageable from '../src/types/com/vaadin/hilla/mappedtypes/Pageable.js';
import NullHandling from '../src/types/org/springframework/data/domain/Sort/NullHandling.js';
import type AndFilter from '../types/com/vaadin/hilla/crud/filter/AndFilter.js';
import type FilterUnion from '../types/com/vaadin/hilla/crud/filter/FilterUnion.js';
import Matcher from '../types/com/vaadin/hilla/crud/filter/PropertyStringFilter/Matcher.js';
import type PropertyStringFilter from '../types/com/vaadin/hilla/crud/filter/PropertyStringFilter.js';
import type Pageable from '../types/com/vaadin/hilla/mappedtypes/Pageable.js';

use(sinonChai);

Expand Down Expand Up @@ -57,7 +57,7 @@ const listService: ListService<number> = {
},
};

const listAndCountService: CountService<number> & ListService<number> = {
const listAndCountService: CountService & ListService<number> = {
async list(request: Pageable): Promise<number[]> {
const offset = request.pageNumber * request.pageSize;
return Promise.resolve(data.slice(offset, offset + request.pageSize));
Expand Down
6 changes: 3 additions & 3 deletions packages/ts/react-crud/test/util.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect } from 'chai';
import { isFilterEmpty } from '../src/util';
import type FilterUnion from '../types/com/vaadin/hilla/crud/filter/FilterUnion';
import Matcher from '../types/com/vaadin/hilla/crud/filter/PropertyStringFilter/Matcher';
import type FilterUnion from '../src/types/com/vaadin/hilla/crud/filter/FilterUnion.js';
import Matcher from '../src/types/com/vaadin/hilla/crud/filter/PropertyStringFilter/Matcher.js';
import { isFilterEmpty } from '../src/util.js';

describe('@vaadin/hilla-react-crud', () => {
describe('util', () => {
Expand Down

0 comments on commit 513ec97

Please sign in to comment.