Skip to content

Commit

Permalink
Style: Fix errors detected by @lmc-eu/eslint-config-typescript rules
Browse files Browse the repository at this point in the history
  • Loading branch information
OndraM committed Apr 10, 2024
1 parent 0082e41 commit cb4da09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/LmcCookieConsentManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import {
import { CookieConsentCategory, DisplayMode, SecondaryButtonMode } from './constants';
import { assembleLanguagesConfig } from './languages/loader';

/* eslint-disable-next-line no-unused-vars */
/* eslint-disable-next-line no-unused-vars, @typescript-eslint/no-empty-function */
const noopAcceptCallback: OnAcceptCallback = (cookieConsent) => {};
/* eslint-disable-next-line no-unused-vars */
/* eslint-disable-next-line no-unused-vars, @typescript-eslint/no-empty-function */
const noopChangeCallback: OnChangeCallback = (cookieConsent, categories) => {};

const defaultOptions: CookieConsentManagerOptions = {
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CookieConsentCategoryValues, CookieTableCategories, Values, VanillaCookieConsent } from './types';
import { CookieConsentCategory, SecondaryButtonMode } from './constants';

export const addSeparators = (strings: string[], and: string = ''): string =>
export const addSeparators = (strings: string[], and = ''): string =>
strings.reduce((accumulator: string, string: string, i: number) => {
if (i === 0) {
return `${accumulator}${string}`;
Expand Down

0 comments on commit cb4da09

Please sign in to comment.