chore(root): migrate to biome

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-09-16 12:20:40 +02:00
parent 1f6e198336
commit 32e91959f6
383 changed files with 1943 additions and 3085 deletions

View File

@@ -100,11 +100,11 @@ export const reportSlice = createSlice({
state,
action: PayloadAction<{
id?: string;
}>
}>,
) => {
state.dirty = true;
state.events = state.events.filter(
(event) => event.id !== action.payload.id
(event) => event.id !== action.payload.id,
);
},
changeEvent: (state, action: PayloadAction<IChartEvent>) => {
@@ -126,7 +126,7 @@ export const reportSlice = createSlice({
// Breakdowns
addBreakdown: (
state,
action: PayloadAction<Omit<IChartBreakdown, 'id'>>
action: PayloadAction<Omit<IChartBreakdown, 'id'>>,
) => {
state.dirty = true;
state.breakdowns.push({
@@ -138,11 +138,11 @@ export const reportSlice = createSlice({
state,
action: PayloadAction<{
id?: string;
}>
}>,
) => {
state.dirty = true;
state.breakdowns = state.breakdowns.filter(
(event) => event.id !== action.payload.id
(event) => event.id !== action.payload.id,
);
},
changeBreakdown: (state, action: PayloadAction<IChartBreakdown>) => {
@@ -193,7 +193,7 @@ export const reportSlice = createSlice({
action: PayloadAction<{
startDate: string;
endDate: string;
}>
}>,
) => {
state.dirty = true;
state.startDate = formatISO(startOfDay(action.payload.startDate));
@@ -215,7 +215,7 @@ export const reportSlice = createSlice({
const interval = getDefaultIntervalByDates(
state.startDate,
state.endDate
state.endDate,
);
if (interval) {
state.interval = interval;
@@ -229,7 +229,7 @@ export const reportSlice = createSlice({
const interval = getDefaultIntervalByDates(
state.startDate,
state.endDate
state.endDate,
);
if (interval) {
state.interval = interval;