Skip to content

Instantly share code, notes, and snippets.

View shricodev's full-sized avatar
:bowtie:
Hello! 👀

Shrijal Acharya shricodev

:bowtie:
Hello! 👀
View GitHub Profile
@shricodev
shricodev / .prettierrc
Created November 22, 2024 15:36
My standard prettier config for TS/JS projects
{
"arrowParens": "avoid",
"printWidth": 80,
"semi": false,
"singleQuote": true,
"jsxSingleQuote": true,
"trailingComma": "all",
"proseWrap": "always",
"tabWidth": 2,
"plugins": [
@shricodev
shricodev / settings.json
Created January 7, 2024 10:02 — forked from ixahmedxi/settings.json
VSCode settings.json
{
// open json editor for settings
"workbench.settings.editor": "json",
// Theme
"workbench.colorTheme": "Aura Dark",
"workbench.iconTheme": "moxer-icons",
// Change font
"editor.fontFamily": "Geist Mono",
@shricodev
shricodev / app.js
Created June 30, 2023 06:54 — forked from stongo/app.js
Joi validation in a Mongoose model
var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/test');
var db = mongoose.connection;
db.on('error', function() {
return console.error.bind(console, 'connection error: ');
});