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 6fd3327 commit 5efa335
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/array.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import { getArrayItemSize } from './size.js'
// Omitted items are filtered out.
// - Otherwise, `JSON.stringify()` would transform them to `null`
// Use imperative logic for performance reasons.
/* eslint-disable fp/no-let, fp/no-loops, fp/no-mutation,
fp/no-mutating-methods, max-depth */
/* eslint-disable fp/no-let, fp/no-loops, fp/no-mutation, max-depth */
export const truncateArray = ({
array,
truncatedProps,
Expand Down Expand Up @@ -48,5 +47,4 @@ export const truncateArray = ({
truncatedProps: state.truncatedProps,
}
}
/* eslint-enable fp/no-let, fp/no-loops, fp/no-mutation,
fp/no-mutating-methods, max-depth */
/* eslint-enable fp/no-let, fp/no-loops, fp/no-mutation, max-depth */
2 changes: 1 addition & 1 deletion src/length.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import stringByteLength from 'string-byte-length'

// Retrieve the JSON length of a value, excluding its children.
// eslint-disable-next-line max-statements, complexity
// eslint-disable-next-line max-statements
export const getJsonLength = (value) => {
if (value === null) {
return NULL_LENGTH
Expand Down

0 comments on commit 5efa335

Please sign in to comment.