Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Oct 27, 2024
1 parent 691c6df commit 7fe28d2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/apply.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ 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])
}
}
4 changes: 0 additions & 4 deletions src/concat.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ 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 @@ -22,15 +21,13 @@ 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 }
}

const getItems = ({ items }) => items

// eslint-disable-next-line complexity
const firstSortFunc = (updateA, updateB) => {
if (updateA.negation < updateB.negation) {
return -1
Expand All @@ -51,7 +48,6 @@ const firstSortFunc = (updateA, updateB) => {
return 0
}

// eslint-disable-next-line complexity
const secondSortFunc = (updateA, updateB) => {
if (updateA.any < updateB.any) {
return 1
Expand Down
1 change: 0 additions & 1 deletion src/group.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ 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 7fe28d2

Please sign in to comment.