Add sqlite3 and modify prettier config #10
Merged
j285he
merged 4 commits from j285he-add-sqlite3
into main
2 years ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'j285he-add-sqlite3'
Deleting a branch is permanent. It CANNOT be undone. Continue?
- plugin:prettier/recommended
rules:
prettier/prettier: ['error', {semi: true}]
Is the
{semi: true}
necessary here?"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! 🙂
3ed6d703a9
into main 2 years agoReviewers
3ed6d703a9
.