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 36cd65a commit fcb48cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const getCurrentDescriptor = (input, key) => {
// This might throw when using `Proxy`, etc.
const setProperty = (input, key, finalDescriptor) => {
try {
// eslint-disable-next-line fp/no-mutating-methods
Object.defineProperty(input, key, finalDescriptor)
} catch {}
}
1 change: 1 addition & 0 deletions src/merge.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ each(
],
({ title }, [currentDescriptor, newDescriptor, expectedDescriptor]) => {
test(`Can set descriptors | ${title}`, (t) => {
// eslint-disable-next-line fp/no-mutating-methods
const input = Object.defineProperty({}, 'prop', currentDescriptor)
const inputA = redefineProperty(input, 'prop', newDescriptor)
const descriptor = Object.getOwnPropertyDescriptor(inputA, 'prop')
Expand Down

0 comments on commit fcb48cd

Please sign in to comment.