Skip to content

Commit a6bc4d5

Browse files
Config, lint changes
1 parent 4b9cc15 commit a6bc4d5

7 files changed

+12
-13
lines changed

.eslintignore

-1
This file was deleted.

.gitattributes

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Set the repository to show as TypeScript rather than JS in GitHub
2-
*.js linguist-detectable=false
1+
# Package is 100% Typescript, Javascript only for examples
2+
*.js linguist-detectable=false

.prettierrc

-7
This file was deleted.

.vscode/extensions.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"recommendations": ["kavod-io.vscode-jest-test-adapter", "esbenp.prettier-vscode", "github.vscode-github-actions"]
2+
"recommendations": ["kavod-io.vscode-jest-test-adapter", "esbenp.prettier-vscode", "github.vscode-github-actions", "hbenl.vscode-test-explorer"]
33
}

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023 Ryan Sonshine
3+
Copyright (c) 2023 SQLiteCloud, Inc.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

package.json

+7
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,12 @@
6969
"branches": [
7070
"main"
7171
]
72+
},
73+
"prettier": {
74+
"semi": false,
75+
"singleQuote": true,
76+
"trailingComma": "none",
77+
"arrowParens": "avoid",
78+
"printWidth": 160
7279
}
7380
}

src/connection.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ export class SQLiteCloudConnection {
317317
this.socket?.write(commands, 'utf8', () => {
318318
socketTimeout = setTimeout(() => {
319319
const timeoutError = new SQLiteCloudError('Request timed out', { cause: anonimizeCommand(commands) })
320-
this.log(`Request timed out, config.timeout is ${this.config.timeout}ms`, timeoutError)
320+
this.log(`Request timed out, config.timeout is ${this.config.timeout as number}ms`, timeoutError)
321321
finish(timeoutError)
322322
}, this.config.timeout)
323323
this.socket?.on('data', readData)

0 commit comments

Comments
 (0)