-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: use biome for formatting and linting #57
Conversation
app.post( | ||
'/interactions', | ||
verifyKeyMiddleware(process.env.CLIENT_PUBLIC_KEY), | ||
(req, res) => { | ||
const interaction = req.body; | ||
if (interaction.type === InteractionType.APPLICATION_COMMAND) { | ||
res.send({ | ||
type: InteractionResponseType.CHANNEL_MESSAGE_WITH_SOURCE, | ||
data: { | ||
content: 'Hello world', | ||
}, | ||
}); | ||
} | ||
}, | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a fan of this tab size, can you make this match discord_app of 2?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chatted through in DM - this is using tabs by default instead of spaces. I believe tab size is entirely controlled via editor, but the default config is a tabsize of 2 FWIW.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this reformatted the entire codebase in tabs instead of spaces?
nice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HUGE
Upgrading eslint/prettier has become increasingly annoying, and https://biomejs.dev/ is gaining some early traction. I'd like to use it here, where there is relatively low risk.