Skip to content

Commit

Permalink
refactor(eslint): code adaptions to respect "no-empty-interface" rule
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKless committed Jan 17, 2022
1 parent 013236c commit 6e11d11
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/app/core/models/basket/basket.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ export interface AbstractBasket<T> {
attributes?: Attribute[];
}

export interface Basket extends AbstractBasket<LineItem> {}
export type Basket = AbstractBasket<LineItem>;

export interface BasketView extends AbstractBasket<LineItemView> {}
export type BasketView = AbstractBasket<LineItemView>;

export const createBasketView = (
basket: Basket,
Expand Down
2 changes: 1 addition & 1 deletion src/app/core/store/content/includes/includes.reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const includesAdapter = createEntityAdapter<ContentPageletEntryPoint>({
selectId: contentInclude => contentInclude.id,
});

export interface IncludesState extends EntityState<ContentPageletEntryPoint> {}
export type IncludesState = EntityState<ContentPageletEntryPoint>;

const initialState: IncludesState = includesAdapter.getInitialState({});

Expand Down
2 changes: 1 addition & 1 deletion src/app/core/store/content/pagelets/pagelets.reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { loadContentIncludeSuccess } from 'ish-core/store/content/includes/inclu
import { loadContentPageSuccess } from 'ish-core/store/content/pages/pages.actions';
import { loadViewContextEntrypointSuccess } from 'ish-core/store/content/viewcontexts/viewcontexts.actions';

export interface PageletsState extends EntityState<ContentPagelet> {}
export type PageletsState = EntityState<ContentPagelet>;

export const pageletsAdapter = createEntityAdapter<ContentPagelet>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const viewcontextsAdapter = createEntityAdapter<ContentPageletEntryPointW
selectId: viewcontext => serializeContextSpecificViewContextId(viewcontext.viewContextId, viewcontext.callParameters),
});

export interface ViewcontextsState extends EntityState<ContentPageletEntryPointWithContext> {}
export type ViewcontextsState = EntityState<ContentPageletEntryPointWithContext>;

const initialState: ViewcontextsState = viewcontextsAdapter.getInitialState({});

Expand Down
2 changes: 1 addition & 1 deletion src/app/core/store/general/countries/countries.reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const countryAdapter = createEntityAdapter<Country>({
selectId: country => country.countryCode,
});

export interface CountriesState extends EntityState<Country> {}
export type CountriesState = EntityState<Country>;

const initialState: CountriesState = countryAdapter.getInitialState({});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const promotionAdapter = createEntityAdapter<Promotion>({
selectId: promotion => promotion.id,
});

export interface PromotionsState extends EntityState<Promotion> {}
export type PromotionsState = EntityState<Promotion>;

const initialState: PromotionsState = promotionAdapter.getInitialState({});

Expand Down
2 changes: 1 addition & 1 deletion src/app/core/store/shopping/search/search.reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const searchAdapter = createEntityAdapter<SuggestSearch>({
selectId: search => search.searchTerm,
});

export interface SearchState extends EntityState<SuggestSearch> {}
export type SearchState = EntityState<SuggestSearch>;

const initialState: SearchState = searchAdapter.getInitialState({});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { submitTactonConfigurationFail, submitTactonConfigurationSuccess } from

import { saveTactonConfigurationReference } from './saved-tacton-configuration.actions';

export interface SavedTactonConfigurationState extends EntityState<TactonSavedConfiguration> {}
export type SavedTactonConfigurationState = EntityState<TactonSavedConfiguration>;

export function makeTactonSavedConfigurationReference(user: string, productId: string): string {
return `${user || 'anonymous'}:${productId}`;
Expand Down

0 comments on commit 6e11d11

Please sign in to comment.