Skip to content

Commit a70ac52

Browse files
committed
run linter
1 parent b9eec60 commit a70ac52

File tree

5 files changed

+15
-8
lines changed

5 files changed

+15
-8
lines changed

src/commands/arewepluginsyet.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
import { SlashCommandBuilder } from '@discordjs/builders';
22
import dedent from 'dedent';
3-
import { ButtonStyle, ComponentType, InteractionResponseType, MessageFlags } from 'discord-api-types/v10';
3+
import {
4+
type APIApplicationCommandInteraction,
5+
ButtonStyle,
6+
ComponentType,
7+
InteractionResponseType,
8+
MessageFlags,
9+
} from 'discord-api-types/v10';
410
import { reply } from '../reply.js';
511

6-
export async function onPluginsSlashCommand() {
12+
export async function onPluginsSlashCommand(_interaction: APIApplicationCommandInteraction) {
713
return reply(InteractionResponseType.ChannelMessageWithSource, {
814
flags: MessageFlags.IsComponentsV2,
915
components: [
@@ -35,6 +41,7 @@ export async function onPluginsSlashCommand() {
3541
type: ComponentType.TextDisplay,
3642
content: dedent`
3743
These plugins are still limited in scope: They only allow you to match code snippets and report diagnostics on them.
44+
3845
Want to contribute? See the umbrella issue: <https://github.com/biomejs/biome/issues/2463>
3946
`,
4047
},

src/commands/reproduction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import dedent from 'dedent';
33
import { type APIApplicationCommandInteraction, InteractionResponseType } from 'discord-api-types/v10';
44
import { reply } from '../reply';
55

6-
export async function onReproductionSlashCommand(interaction: APIApplicationCommandInteraction) {
6+
export async function onReproductionSlashCommand(_interaction: APIApplicationCommandInteraction) {
77
return reply(InteractionResponseType.ChannelMessageWithSource, {
88
content: dedent`
99
🙏 **Please provide a minimal reproduction**

src/commands/supported-languages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import dedent from 'dedent';
33
import { type APIApplicationCommandInteraction, InteractionResponseType } from 'discord-api-types/v10';
44
import { reply } from '../reply.js';
55

6-
export async function onSupportedLanguagesSlashCommand(interaction: APIApplicationCommandInteraction) {
6+
export async function onSupportedLanguagesSlashCommand(_interaction: APIApplicationCommandInteraction) {
77
return reply(InteractionResponseType.ChannelMessageWithSource, {
88
content: dedent`
99
### ✅ Full Support

src/commands/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { SlashCommandBuilder } from '@discordjs/builders';
22
import { type APIApplicationCommandInteraction, InteractionResponseType } from 'discord-api-types/v10';
33
import { reply } from '../reply.js';
44

5-
export async function onTestSlashCommand(interaction: APIApplicationCommandInteraction) {
5+
export async function onTestSlashCommand(_interaction: APIApplicationCommandInteraction) {
66
return reply(InteractionResponseType.ChannelMessageWithSource, {
77
content: 'you just ran the test command. good job',
88
});

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { type APIInteraction, InteractionResponseType } from 'discord-api-types/v10';
2-
import { PlatformAlgorithm, isValidRequest } from 'discord-verify';
2+
import { isValidRequest, PlatformAlgorithm } from 'discord-verify';
33
import { onPluginsSlashCommand } from './commands/arewepluginsyet.js';
44
import { onLintRuleAutocomplete, onLintRuleSlashCommand } from './commands/lint-rule.js';
55
import { onReproductionSlashCommand } from './commands/reproduction.js';
@@ -16,7 +16,7 @@ export type Env = {
1616
};
1717

1818
export default {
19-
async fetch(request: Request, env: Env, ctx: ExecutionContext): Promise<Response> {
19+
async fetch(request: Request, env: Env, _ctx: ExecutionContext): Promise<Response> {
2020
const url = new URL(request.url);
2121

2222
// Route requests based on the URL path
@@ -68,7 +68,7 @@ async function handleInteraction(request: Request, env: Env): Promise<Response>
6868
}
6969

7070
if (isMessageComponent(interaction)) {
71-
const [name] = interaction.data.custom_id.split(':');
71+
const [_name] = interaction.data.custom_id.split(':');
7272
// add things here
7373
}
7474

0 commit comments

Comments
 (0)