Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Nov 1, 2024
1 parent eb2ef83 commit 02d5b98
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/apply.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ const applyMerge = ({ items, array, index, merge }) => {
const pushValues = (array, newArray, from, to) => {
// eslint-disable-next-line fp/no-loops, fp/no-mutation, fp/no-let
for (let index = from; index < to; index += 1) {
// eslint-disable-next-line fp/no-mutating-methods
newArray.push(array[index])
}
}
2 changes: 2 additions & 0 deletions src/concat.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const concatUpdates = (updates) => {
}

const updatesA = Object.values(groupBy(updates, 'index')).map(concatGroup)
// eslint-disable-next-line fp/no-mutating-methods
return [...updatesA].sort(secondSortFunc)
}

Expand All @@ -21,6 +22,7 @@ const concatGroup = (updates) => {
}

const [{ index, any }] = updates
// eslint-disable-next-line fp/no-mutating-methods
const updatesA = [...updates].sort(firstSortFunc)
const items = updatesA.flatMap(getItems)
return { index, any, items }
Expand Down
1 change: 1 addition & 0 deletions src/group.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const addGroup = (object, groups, propName) => {
// eslint-disable-next-line no-param-reassign, fp/no-mutation
groups[group] = [object]
} else {
// eslint-disable-next-line fp/no-mutating-methods
groups[group].push(object)
}
}

0 comments on commit 02d5b98

Please sign in to comment.