Add sqlite3 types and vscode settings (#11)

I was having some TypeScript trouble with sqlite3, but hopefully this should fix it. I also copied over most of the .vscode settings from the website repo.

Co-authored-by: Amy <a258wang@uwaterloo.ca>
Reviewed-on: #11
Reviewed-by: j285he <j285he@localhost>
Co-authored-by: Amy <a258wang@csclub.uwaterloo.ca>
Co-committed-by: Amy <a258wang@csclub.uwaterloo.ca>
This commit is contained in:
Amy Wang 2022-01-22 13:52:41 -05:00
parent 3ed6d703a9
commit 91ef014ee5
5 changed files with 67 additions and 1 deletions

6
.vscode/extensions.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"humao.rest-client",
]
}

41
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,41 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"eslint.format.enable": true,
"eslint.codeActionsOnSave.mode": "all",
"[css]": {
"editor.suggest.insertMode": "replace",
"gitlens.codeLens.scopes": ["document"],
"editor.formatOnSave": true
},
"[javascript]": {
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
},
"[javascriptreact]": {
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
},
"[typescript]": {
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
},
"[typescriptreact]": {
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
},
"python.linting.pylintEnabled": true,
"python.linting.enabled": true,
"files.exclude": {
"node_modules": true
},
"editor.tabSize": 2,
"files.eol": "\n",
}

19
package-lock.json generated
View File

@ -15,6 +15,7 @@
"devDependencies": {
"@types/node": "16.11.6",
"@types/react": "17.0.33",
"@types/sqlite3": "^3.1.7",
"@typescript-eslint/eslint-plugin": "^5.2.0",
"@typescript-eslint/parser": "^5.2.0",
"eslint": "7.32.0",
@ -1171,6 +1172,15 @@
"integrity": "sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew==",
"dev": true
},
"node_modules/@types/sqlite3": {
"version": "3.1.7",
"resolved": "https://registry.npmjs.org/@types/sqlite3/-/sqlite3-3.1.7.tgz",
"integrity": "sha512-8FHV/8Uzd7IwdHm5mvmF2Aif4aC/gjrt4axWD9SmfaxITnOjtOhCbOSTuqv/VbH1uq0QrwlaTj9aTz3gmR6u4w==",
"dev": true,
"dependencies": {
"@types/node": "*"
}
},
"node_modules/@typescript-eslint/eslint-plugin": {
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.2.0.tgz",
@ -10714,6 +10724,15 @@
"integrity": "sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew==",
"dev": true
},
"@types/sqlite3": {
"version": "3.1.7",
"resolved": "https://registry.npmjs.org/@types/sqlite3/-/sqlite3-3.1.7.tgz",
"integrity": "sha512-8FHV/8Uzd7IwdHm5mvmF2Aif4aC/gjrt4axWD9SmfaxITnOjtOhCbOSTuqv/VbH1uq0QrwlaTj9aTz3gmR6u4w==",
"dev": true,
"requires": {
"@types/node": "*"
}
},
"@typescript-eslint/eslint-plugin": {
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.2.0.tgz",

View File

@ -17,6 +17,7 @@
"devDependencies": {
"@types/node": "16.11.6",
"@types/react": "17.0.33",
"@types/sqlite3": "^3.1.7",
"@typescript-eslint/eslint-plugin": "^5.2.0",
"@typescript-eslint/parser": "^5.2.0",
"eslint": "7.32.0",

1
types.d.ts vendored
View File

@ -1 +0,0 @@
declare module "sqlite3";