Skip to content
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

Merged
merged 1 commit into from
May 17, 2024
Merged

chore: use biome for formatting and linting #57

merged 1 commit into from
May 17, 2024

Conversation

JustinBeckwith
Copy link
Contributor

@JustinBeckwith JustinBeckwith commented May 16, 2024

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.

Comment on lines +10 to +24
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',
},
});
}
},
);
Copy link

@sklein12 sklein12 May 17, 2024

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?

Copy link
Contributor Author

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.

Copy link
Member

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HUGE

@JustinBeckwith JustinBeckwith merged commit 9b396aa into main May 17, 2024
4 checks passed
@JustinBeckwith JustinBeckwith deleted the biome branch May 17, 2024 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants