Add sqlite3 and modify prettier config #10
Loading…
Reference in New Issue
No description provided.
Delete Branch "j285he-add-sqlite3"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -19,6 +19,8 @@ extends:
- plugin:prettier/recommended
rules:
prettier/prettier: ['error', {semi: true}]
Is the
{semi: true}
necessary here?@ -2,3 +2,3 @@
"arrowParens": "avoid",
"singleQuote": true,
"semi": false,
"semi": true,
It looks like the default Prettier options are more or less the same as what we want, so perhaps we could delete this file entirely? The website repo doesn't even have a
.prettierrc
, so getting rid of this file would make the Prettier rules more similar between the two repos. (If there's a reason why we maybe shouldn't try to align the Prettier config between both projects, please leave a comment!)If we would like to try and align the formatting/config in this repo with the config in the website repo, then some additional things we could consider changing:
eslint.yml
, line 24: we could remove the rules about quotes?eslint.yml
, line 35-37: we could change the import rules to beerror
instead ofwarn
?.vscode
in the website repo to this repo as well?I copied eslintrc.js from www-new over to library and removed a few rules. Let me know and I can restore them if needed
on second thought it's probably easier to just copy over the entire file
Just throwing this here as a note, I realized that there are a few different node packages that we could potentially choose from for querying the SQLite database:
I'm personally happy to use sqlite3 as added in this PR, but I'll leave these findings here in case anyone wants to do a bit more research.
Looks good to me! We can continue to tweak things in the future as we see fit. Thank you Jared for getting this all set up! 🙂