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 dbf3c65 commit f17f1c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions benchmark/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const charCodeAt = {
export const codePointAt = {
beforeAll,
// Uses imperative code for performance.
/* eslint-disable complexity, max-statements, fp/no-let, fp/no-loops,
/* eslint-disable max-statements, fp/no-let, fp/no-loops,
max-depth, fp/no-mutation */
main: () => {
const charLength = string.length
Expand All @@ -48,7 +48,7 @@ export const codePointAt = {

return byteLength
},
/* eslint-enable complexity, max-statements, fp/no-let, fp/no-loops,
/* eslint-enable max-statements, fp/no-let, fp/no-loops,
max-depth, fp/no-mutation */
}

Expand Down
4 changes: 2 additions & 2 deletions src/char_code.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Uses imperative code for performance.
// Uses `string.charCodeAt()` over `String.codePointAt()` because it is faster.
/* eslint-disable complexity, max-statements, fp/no-let, fp/no-loops, max-depth,
/* eslint-disable max-statements, fp/no-let, fp/no-loops, max-depth,
fp/no-mutation, no-continue, unicorn/prefer-code-point */
export const getCharCodeByteLength = (string) => {
const charLength = string.length
Expand Down Expand Up @@ -57,5 +57,5 @@ const FIRST_HIGH_SURROGATE = 0xd8_00
const LAST_HIGH_SURROGATE = 0xdb_ff
const FIRST_LOW_SURROGATE = 0xdc_00
const LAST_LOW_SURROGATE = 0xdf_ff
/* eslint-enable complexity, max-statements, fp/no-let, fp/no-loops, max-depth,
/* eslint-enable max-statements, fp/no-let, fp/no-loops, max-depth,
fp/no-mutation, no-continue, unicorn/prefer-code-point */

0 comments on commit f17f1c9

Please sign in to comment.