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 88c2cd2 commit 3b2d94b
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 9 deletions.
6 changes: 2 additions & 4 deletions src/helpers/inherited.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ const testInheritedSingle = (
// - Own and inherited properties
export const getChild = () => new Child()

/* eslint-disable fp/no-class, fp/no-this, fp/no-mutation,
fp/no-mutating-methods */
/* eslint-disable fp/no-class, fp/no-this, fp/no-mutation */
class Parent {}

Parent.prototype.inheritedEnum = 'inheritedEnum'
Expand All @@ -52,5 +51,4 @@ class Child extends Parent {
Object.defineProperty(this, 'ownNonEnum', { value: 'ownNonEnum' })
}
}
/* eslint-enable fp/no-class, fp/no-this, fp/no-mutation,
fp/no-mutating-methods */
/* eslint-enable fp/no-class, fp/no-this, fp/no-mutation */
3 changes: 1 addition & 2 deletions src/iterate/children.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ const iterateChildren = function* ({
const groupSortChildEntries = (childEntries, { sort }) => {
const childEntriesObj = groupBy(childEntries, getLastProp)
return sort
? // eslint-disable-next-line fp/no-mutating-methods
Object.keys(childEntriesObj)
? Object.keys(childEntriesObj)
.sort()
.map((prop) => childEntriesObj[prop])
: Object.values(childEntriesObj)
Expand Down
1 change: 0 additions & 1 deletion src/iterate/group.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@ const addGroup = (object, index, groups, getGroup) => {
return
}

// eslint-disable-next-line fp/no-mutating-methods
groups[group].push(object)
}
1 change: 0 additions & 1 deletion src/remove.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ const trimUndefined = (target, mutate) => {
}

if (mutate) {
// eslint-disable-next-line fp/no-mutating-methods
target.splice(0)
return target
}
Expand Down
1 change: 0 additions & 1 deletion src/tokens/any.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export const getKeys = (value, inherited) => {

// eslint-disable-next-line fp/no-loops, guard-for-in
for (const key in value) {
// eslint-disable-next-line fp/no-mutating-methods
keys.push(key)
}

Expand Down

0 comments on commit 3b2d94b

Please sign in to comment.