Skip to content

Commit

Permalink
Merge pull request #83 from UniqueVision/fix-deprecated-expression
Browse files Browse the repository at this point in the history
Fix eslint configuration and update text utility function
  • Loading branch information
aoyagikouhei authored Jan 26, 2024
2 parents 11c9b9e + 8e4ef40 commit a7cdda8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@
"comma-spacing": "error",
"no-unused-vars": "off",
"space-before-blocks": "error",
"@typescript-eslint/no-implicit-any-catch": [
"error",
{
"allowExplicitAny": true
}
],
"object-curly-spacing": [
"error",
"always"
Expand Down
2 changes: 1 addition & 1 deletion server/src/utilities/text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function findIndexFromBuffer(

export function getPositionFromBuffer(fileText: string, index: uinteger): Position {
const textLines = Buffer.from(fileText)
.slice(0, index)
.subarray(0, index)
.toString()
.split("\n")

Expand Down

0 comments on commit a7cdda8

Please sign in to comment.