From d1ded3e3b5c18744e2101796a51e5f5567a32773 Mon Sep 17 00:00:00 2001 From: suneettipirneni Date: Thu, 1 Sep 2022 11:38:39 -0400 Subject: [PATCH] chore: make requested changes --- packages/actions/package.json | 3 +- packages/api-extractor-utils/package.json | 3 +- .../api-extractor-utils/src/tsdoc/index.ts | 3 +- .../__tests__/components/actionRow.test.ts | 8 ++++-- .../__tests__/components/button.test.ts | 8 ++++-- .../__tests__/components/components.test.ts | 16 ++++++----- .../__tests__/components/selectMenu.test.ts | 3 +- .../__tests__/components/textInput.test.ts | 3 +- .../SlashCommands/Options.test.ts | 23 +++++++-------- .../SlashCommands/SlashCommands.test.ts | 3 +- .../__tests__/interactions/modal.test.ts | 17 ++++++++--- packages/builders/package.json | 3 +- packages/builders/src/components/ActionRow.ts | 11 ++++---- .../builders/src/components/Assertions.ts | 3 +- .../builders/src/components/Components.ts | 3 +- .../builders/src/components/button/Button.ts | 2 +- .../src/components/selectMenu/SelectMenu.ts | 3 +- .../interactions/slashCommands/Assertions.ts | 3 +- .../slashCommands/SlashCommandSubcommands.ts | 9 +++--- ...ndOptionWithChoicesAndAutocompleteMixin.ts | 3 +- .../slashCommands/options/attachment.ts | 3 +- .../slashCommands/options/boolean.ts | 3 +- .../slashCommands/options/channel.ts | 3 +- .../slashCommands/options/integer.ts | 3 +- .../slashCommands/options/mentionable.ts | 3 +- .../slashCommands/options/number.ts | 3 +- .../slashCommands/options/role.ts | 3 +- .../slashCommands/options/string.ts | 3 +- .../slashCommands/options/user.ts | 3 +- packages/collection/package.json | 3 +- packages/discord.js/package.json | 2 +- packages/docgen/package.json | 1 - packages/docgen/src/cli.ts | 2 ++ packages/proxy-container/package.json | 3 +- .../proxy/__tests__/proxyRequests.test.ts | 3 +- packages/proxy/package.json | 3 +- packages/proxy/src/handlers/proxyRequests.ts | 10 +++++-- .../rest/__tests__/RequestManager.test.ts | 3 +- packages/rest/package.json | 3 +- packages/rest/src/lib/CDN.ts | 4 ++- packages/rest/src/lib/REST.ts | 11 ++++++-- packages/rest/src/lib/RequestManager.ts | 3 +- .../src/lib/handlers/SequentialHandler.ts | 3 +- packages/scripts/package.json | 3 +- packages/scripts/src/generateIndex.ts | 6 ++-- packages/voice/__tests__/AudioPlayer.test.ts | 3 +- .../voice/__tests__/AudioResource.test.ts | 3 +- packages/voice/__tests__/SSRCMap.test.ts | 3 +- .../voice/__tests__/TransformerGraph.test.ts | 3 +- .../voice/__tests__/VoiceConnection.test.ts | 8 ++---- packages/voice/__tests__/entersState.test.ts | 3 +- packages/voice/examples/basic/adapter.ts | 2 +- .../voice/examples/basic/basic-example.ts | 2 +- packages/voice/package.json | 3 +- packages/voice/src/VoiceConnection.ts | 3 +- packages/voice/src/audio/AudioPlayer.ts | 3 +- packages/voice/src/audio/AudioResource.ts | 9 ++---- .../voice/src/networking/VoiceUDPSocket.ts | 3 +- .../voice/src/networking/VoiceWebSocket.ts | 3 +- .../voice/src/receive/AudioReceiveStream.ts | 3 +- packages/voice/src/receive/VoiceReceiver.ts | 7 +++-- packages/website/package.json | 3 +- packages/website/src/middleware.ts | 3 +- .../WorkerContextFetchingStrategy.test.ts | 6 ++-- .../strategy/WorkerShardingStrategy.test.ts | 15 ++++++---- .../__tests__/util/IdentifyThrottler.test.ts | 6 ++-- .../ws/__tests__/ws/WebSocketManager.test.ts | 9 ++---- packages/ws/package.json | 3 +- .../context/WorkerContextFetchingStrategy.ts | 8 ++++-- .../sharding/SimpleShardingStrategy.ts | 3 +- .../sharding/WorkerShardingStrategy.ts | 3 +- packages/ws/src/strategies/sharding/worker.ts | 12 +++++--- packages/ws/src/ws/WebSocketManager.ts | 22 +++++++-------- packages/ws/src/ws/WebSocketShard.ts | 17 +++++------ yarn.lock | 28 ------------------- 75 files changed, 193 insertions(+), 226 deletions(-) diff --git a/packages/actions/package.json b/packages/actions/package.json index 9d87e5f42e4cf..3cca41d28c8e7 100644 --- a/packages/actions/package.json +++ b/packages/actions/package.json @@ -48,8 +48,7 @@ "@typescript-eslint/parser": "^5.36.1", "@vitest/coverage-c8": "^0.22.1", "eslint": "^8.23.0", - "eslint-config-marine": "^9.4.1", - "eslint-config-neon": "^0.1.13", + "eslint-config-neon": "^0.1.22", "eslint-config-prettier": "^8.5.0", "eslint-import-resolver-typescript": "^3.5.0", "eslint-plugin-import": "^2.26.0", diff --git a/packages/api-extractor-utils/package.json b/packages/api-extractor-utils/package.json index a9897f856377d..f94aa4f299f07 100644 --- a/packages/api-extractor-utils/package.json +++ b/packages/api-extractor-utils/package.json @@ -38,8 +38,7 @@ "@typescript-eslint/eslint-plugin": "^5.36.1", "@typescript-eslint/parser": "^5.36.1", "eslint": "^8.23.0", - "eslint-config-marine": "^9.4.1", - "eslint-config-neon": "^0.1.13", + "eslint-config-neon": "^0.1.22", "eslint-config-prettier": "^8.5.0", "eslint-import-resolver-typescript": "^3.5.0", "eslint-plugin-import": "^2.26.0", diff --git a/packages/api-extractor-utils/src/tsdoc/index.ts b/packages/api-extractor-utils/src/tsdoc/index.ts index 22139d3f7863e..3784656fe22d8 100644 --- a/packages/api-extractor-utils/src/tsdoc/index.ts +++ b/packages/api-extractor-utils/src/tsdoc/index.ts @@ -13,8 +13,7 @@ import { } from '@microsoft/tsdoc'; import { block } from './CommentBlock.js'; import { codeSpan } from './CommentCodeSpan.js'; -import type { AnyDocNodeJSON } from './CommentNode'; -import { node as _node } from './CommentNode.js'; +import { node as _node, type AnyDocNodeJSON } from './CommentNode.js'; import { nodeContainer } from './CommentNodeContainer.js'; import { fencedCode } from './FencedCodeCommentNode.js'; import { linkTagNode } from './LinkTagCommentNode.js'; diff --git a/packages/builders/__tests__/components/actionRow.test.ts b/packages/builders/__tests__/components/actionRow.test.ts index 63abdba82acfd..d0bb9f7b584fc 100644 --- a/packages/builders/__tests__/components/actionRow.test.ts +++ b/packages/builders/__tests__/components/actionRow.test.ts @@ -1,5 +1,9 @@ -import type { APIActionRowComponent, APIMessageActionRowComponent } from 'discord-api-types/v10'; -import { ButtonStyle, ComponentType } from 'discord-api-types/v10'; +import { + ButtonStyle, + ComponentType, + type APIActionRowComponent, + type APIMessageActionRowComponent, +} from 'discord-api-types/v10'; import { describe, test, expect } from 'vitest'; import { ActionRowBuilder, diff --git a/packages/builders/__tests__/components/button.test.ts b/packages/builders/__tests__/components/button.test.ts index 6386fb01426ef..be7f57a98031d 100644 --- a/packages/builders/__tests__/components/button.test.ts +++ b/packages/builders/__tests__/components/button.test.ts @@ -1,6 +1,10 @@ /* eslint-disable @typescript-eslint/ban-ts-comment */ -import type { APIButtonComponentWithCustomId, APIButtonComponentWithURL } from 'discord-api-types/v10'; -import { ButtonStyle, ComponentType } from 'discord-api-types/v10'; +import { + ButtonStyle, + ComponentType, + type APIButtonComponentWithCustomId, + type APIButtonComponentWithURL, +} from 'discord-api-types/v10'; import { describe, test, expect } from 'vitest'; import { buttonLabelValidator, buttonStyleValidator } from '../../src/components/Assertions.js'; import { ButtonBuilder } from '../../src/components/button/Button.js'; diff --git a/packages/builders/__tests__/components/components.test.ts b/packages/builders/__tests__/components/components.test.ts index 38f8dc7b8a3c2..c8b0eb44dd280 100644 --- a/packages/builders/__tests__/components/components.test.ts +++ b/packages/builders/__tests__/components/components.test.ts @@ -1,11 +1,13 @@ -import type { - APIActionRowComponent, - APIButtonComponent, - APIMessageActionRowComponent, - APISelectMenuComponent, - APITextInputComponent, +import { + ButtonStyle, + ComponentType, + TextInputStyle, + type APIButtonComponent, + type APIMessageActionRowComponent, + type APISelectMenuComponent, + type APITextInputComponent, + type APIActionRowComponent, } from 'discord-api-types/v10'; -import { ButtonStyle, ComponentType, TextInputStyle } from 'discord-api-types/v10'; import { describe, test, expect } from 'vitest'; import { ActionRowBuilder, diff --git a/packages/builders/__tests__/components/selectMenu.test.ts b/packages/builders/__tests__/components/selectMenu.test.ts index d1f35f3ccf2a2..d6748bdfffea5 100644 --- a/packages/builders/__tests__/components/selectMenu.test.ts +++ b/packages/builders/__tests__/components/selectMenu.test.ts @@ -1,6 +1,5 @@ /* eslint-disable @typescript-eslint/ban-ts-comment */ -import type { APISelectMenuComponent, APISelectMenuOption } from 'discord-api-types/v10'; -import { ComponentType } from 'discord-api-types/v10'; +import { ComponentType, type APISelectMenuComponent, type APISelectMenuOption } from 'discord-api-types/v10'; import { describe, test, expect } from 'vitest'; import { SelectMenuBuilder, SelectMenuOptionBuilder } from '../../src/index.js'; diff --git a/packages/builders/__tests__/components/textInput.test.ts b/packages/builders/__tests__/components/textInput.test.ts index 0e94a2be38713..62b0085f6505d 100644 --- a/packages/builders/__tests__/components/textInput.test.ts +++ b/packages/builders/__tests__/components/textInput.test.ts @@ -1,5 +1,4 @@ -import type { APITextInputComponent } from 'discord-api-types/v10'; -import { ComponentType, TextInputStyle } from 'discord-api-types/v10'; +import { ComponentType, TextInputStyle, type APITextInputComponent } from 'discord-api-types/v10'; import { describe, test, expect } from 'vitest'; import { labelValidator, diff --git a/packages/builders/__tests__/interactions/SlashCommands/Options.test.ts b/packages/builders/__tests__/interactions/SlashCommands/Options.test.ts index b47579d2701c3..25875bb6716b0 100644 --- a/packages/builders/__tests__/interactions/SlashCommands/Options.test.ts +++ b/packages/builders/__tests__/interactions/SlashCommands/Options.test.ts @@ -1,15 +1,16 @@ -import type { - APIApplicationCommandAttachmentOption, - APIApplicationCommandBooleanOption, - APIApplicationCommandChannelOption, - APIApplicationCommandIntegerOption, - APIApplicationCommandMentionableOption, - APIApplicationCommandNumberOption, - APIApplicationCommandRoleOption, - APIApplicationCommandStringOption, - APIApplicationCommandUserOption, +import { + ApplicationCommandOptionType, + ChannelType, + type APIApplicationCommandAttachmentOption, + type APIApplicationCommandBooleanOption, + type APIApplicationCommandChannelOption, + type APIApplicationCommandIntegerOption, + type APIApplicationCommandMentionableOption, + type APIApplicationCommandNumberOption, + type APIApplicationCommandRoleOption, + type APIApplicationCommandStringOption, + type APIApplicationCommandUserOption, } from 'discord-api-types/v10'; -import { ApplicationCommandOptionType, ChannelType } from 'discord-api-types/v10'; import { describe, test, expect } from 'vitest'; import { SlashCommandAttachmentOption, diff --git a/packages/builders/__tests__/interactions/SlashCommands/SlashCommands.test.ts b/packages/builders/__tests__/interactions/SlashCommands/SlashCommands.test.ts index 443d8f2a1a93e..3e88e437d355e 100644 --- a/packages/builders/__tests__/interactions/SlashCommands/SlashCommands.test.ts +++ b/packages/builders/__tests__/interactions/SlashCommands/SlashCommands.test.ts @@ -1,6 +1,5 @@ /* eslint-disable @typescript-eslint/ban-ts-comment */ -import type { APIApplicationCommandOptionChoice } from 'discord-api-types/v10'; -import { ChannelType, PermissionFlagsBits } from 'discord-api-types/v10'; +import { ChannelType, PermissionFlagsBits, type APIApplicationCommandOptionChoice } from 'discord-api-types/v10'; import { describe, test, expect } from 'vitest'; import { SlashCommandAssertions, diff --git a/packages/builders/__tests__/interactions/modal.test.ts b/packages/builders/__tests__/interactions/modal.test.ts index 633acb31b2df7..07ba3ef830ac3 100644 --- a/packages/builders/__tests__/interactions/modal.test.ts +++ b/packages/builders/__tests__/interactions/modal.test.ts @@ -1,9 +1,18 @@ /* eslint-disable @typescript-eslint/ban-ts-comment */ -import type { APIModalInteractionResponseCallbackData, APITextInputComponent } from 'discord-api-types/v10'; -import { ComponentType, TextInputStyle } from 'discord-api-types/v10'; +import { + ComponentType, + TextInputStyle, + type APIModalInteractionResponseCallbackData, + type APITextInputComponent, +} from 'discord-api-types/v10'; import { describe, test, expect } from 'vitest'; -import type { ModalActionRowComponentBuilder } from '../../src'; -import { ActionRowBuilder, ButtonBuilder, ModalBuilder, TextInputBuilder } from '../../src/index.js'; +import { + ActionRowBuilder, + ButtonBuilder, + ModalBuilder, + TextInputBuilder, + type ModalActionRowComponentBuilder, +} from '../../src/index.js'; import { componentsValidator, titleValidator, diff --git a/packages/builders/package.json b/packages/builders/package.json index b161116107be4..4d7cb0da9fefc 100644 --- a/packages/builders/package.json +++ b/packages/builders/package.json @@ -70,8 +70,7 @@ "@vitest/coverage-c8": "^0.22.1", "downlevel-dts": "^0.10.1", "eslint": "^8.23.0", - "eslint-config-marine": "^9.4.1", - "eslint-config-neon": "^0.1.13", + "eslint-config-neon": "^0.1.22", "eslint-config-prettier": "^8.5.0", "eslint-import-resolver-typescript": "^3.5.0", "eslint-plugin-import": "^2.26.0", diff --git a/packages/builders/src/components/ActionRow.ts b/packages/builders/src/components/ActionRow.ts index dd4329c1bd630..3a74a21c72beb 100644 --- a/packages/builders/src/components/ActionRow.ts +++ b/packages/builders/src/components/ActionRow.ts @@ -1,9 +1,10 @@ -import type { - APIMessageActionRowComponent, - APIModalActionRowComponent, - APIActionRowComponentTypes, +import { + type APIActionRowComponent, + ComponentType, + type APIMessageActionRowComponent, + type APIModalActionRowComponent, + type APIActionRowComponentTypes, } from 'discord-api-types/v10'; -import { type APIActionRowComponent, ComponentType } from 'discord-api-types/v10'; import { normalizeArray, type RestOrArray } from '../util/normalizeArray.js'; import { ComponentBuilder } from './Component.js'; import { createComponentBuilder } from './Components.js'; diff --git a/packages/builders/src/components/Assertions.ts b/packages/builders/src/components/Assertions.ts index 41010fbbfa815..faae51dd16b78 100644 --- a/packages/builders/src/components/Assertions.ts +++ b/packages/builders/src/components/Assertions.ts @@ -1,6 +1,5 @@ import { s } from '@sapphire/shapeshift'; -import type { APIMessageComponentEmoji } from 'discord-api-types/v10'; -import { ButtonStyle } from 'discord-api-types/v10'; +import { ButtonStyle, type APIMessageComponentEmoji } from 'discord-api-types/v10'; import { isValidationEnabled } from '../util/validation.js'; import { SelectMenuOptionBuilder } from './selectMenu/SelectMenuOption.js'; diff --git a/packages/builders/src/components/Components.ts b/packages/builders/src/components/Components.ts index d4760cf7694e4..423820955172c 100644 --- a/packages/builders/src/components/Components.ts +++ b/packages/builders/src/components/Components.ts @@ -1,5 +1,4 @@ -import type { APIMessageComponent, APIModalComponent } from 'discord-api-types/v10'; -import { ComponentType } from 'discord-api-types/v10'; +import { ComponentType, type APIMessageComponent, type APIModalComponent } from 'discord-api-types/v10'; import { ActionRowBuilder, type AnyComponentBuilder, diff --git a/packages/builders/src/components/button/Button.ts b/packages/builders/src/components/button/Button.ts index 05df60ad044ff..4b63002fbc871 100644 --- a/packages/builders/src/components/button/Button.ts +++ b/packages/builders/src/components/button/Button.ts @@ -1,10 +1,10 @@ -import type { ButtonStyle } from 'discord-api-types/v10'; import { ComponentType, type APIMessageComponentEmoji, type APIButtonComponent, type APIButtonComponentWithURL, type APIButtonComponentWithCustomId, + type ButtonStyle, } from 'discord-api-types/v10'; import { buttonLabelValidator, diff --git a/packages/builders/src/components/selectMenu/SelectMenu.ts b/packages/builders/src/components/selectMenu/SelectMenu.ts index 430b20c4837e0..39fdfb6d688be 100644 --- a/packages/builders/src/components/selectMenu/SelectMenu.ts +++ b/packages/builders/src/components/selectMenu/SelectMenu.ts @@ -1,5 +1,4 @@ -import type { APISelectMenuOption } from 'discord-api-types/v10'; -import { ComponentType, type APISelectMenuComponent } from 'discord-api-types/v10'; +import { ComponentType, type APISelectMenuComponent, type APISelectMenuOption } from 'discord-api-types/v10'; import { normalizeArray, type RestOrArray } from '../../util/normalizeArray.js'; import { customIdValidator, diff --git a/packages/builders/src/interactions/slashCommands/Assertions.ts b/packages/builders/src/interactions/slashCommands/Assertions.ts index ec2f0f4fab01c..83948daead7b9 100644 --- a/packages/builders/src/interactions/slashCommands/Assertions.ts +++ b/packages/builders/src/interactions/slashCommands/Assertions.ts @@ -1,6 +1,5 @@ import { s } from '@sapphire/shapeshift'; -import type { LocalizationMap } from 'discord-api-types/v10'; -import { type APIApplicationCommandOptionChoice, Locale } from 'discord-api-types/v10'; +import { type APIApplicationCommandOptionChoice, Locale, type LocalizationMap } from 'discord-api-types/v10'; import { isValidationEnabled } from '../../util/validation.js'; import type { ToAPIApplicationCommandOptions } from './SlashCommandBuilder'; import type { SlashCommandSubcommandBuilder, SlashCommandSubcommandGroupBuilder } from './SlashCommandSubcommands'; diff --git a/packages/builders/src/interactions/slashCommands/SlashCommandSubcommands.ts b/packages/builders/src/interactions/slashCommands/SlashCommandSubcommands.ts index dfa1c8e19c487..cb1acf5256cb7 100644 --- a/packages/builders/src/interactions/slashCommands/SlashCommandSubcommands.ts +++ b/packages/builders/src/interactions/slashCommands/SlashCommandSubcommands.ts @@ -1,8 +1,9 @@ -import type { - APIApplicationCommandSubcommandGroupOption, - APIApplicationCommandSubcommandOption, +import type {} from 'discord-api-types/v10'; +import { + ApplicationCommandOptionType, + type APIApplicationCommandSubcommandGroupOption, + type APIApplicationCommandSubcommandOption, } from 'discord-api-types/v10'; -import { ApplicationCommandOptionType } from 'discord-api-types/v10'; import { mix } from 'ts-mixer'; import { assertReturnOfBuilder, validateMaxOptionsLength, validateRequiredParameters } from './Assertions.js'; import type { ToAPIApplicationCommandOptions } from './SlashCommandBuilder.js'; diff --git a/packages/builders/src/interactions/slashCommands/mixins/ApplicationCommandOptionWithChoicesAndAutocompleteMixin.ts b/packages/builders/src/interactions/slashCommands/mixins/ApplicationCommandOptionWithChoicesAndAutocompleteMixin.ts index ca6637fa52cc8..5ea7105f14c49 100644 --- a/packages/builders/src/interactions/slashCommands/mixins/ApplicationCommandOptionWithChoicesAndAutocompleteMixin.ts +++ b/packages/builders/src/interactions/slashCommands/mixins/ApplicationCommandOptionWithChoicesAndAutocompleteMixin.ts @@ -1,6 +1,5 @@ import { s } from '@sapphire/shapeshift'; -import type { APIApplicationCommandOptionChoice } from 'discord-api-types/v10'; -import { ApplicationCommandOptionType } from 'discord-api-types/v10'; +import { ApplicationCommandOptionType, type APIApplicationCommandOptionChoice } from 'discord-api-types/v10'; import { localizationMapPredicate, validateChoicesLength } from '../Assertions.js'; const stringPredicate = s.string.lengthGreaterThanOrEqual(1).lengthLessThanOrEqual(100); diff --git a/packages/builders/src/interactions/slashCommands/options/attachment.ts b/packages/builders/src/interactions/slashCommands/options/attachment.ts index 3e5df2ef8d349..006911033f788 100644 --- a/packages/builders/src/interactions/slashCommands/options/attachment.ts +++ b/packages/builders/src/interactions/slashCommands/options/attachment.ts @@ -1,5 +1,4 @@ -import type { APIApplicationCommandAttachmentOption } from 'discord-api-types/v10'; -import { ApplicationCommandOptionType } from 'discord-api-types/v10'; +import { ApplicationCommandOptionType, type APIApplicationCommandAttachmentOption } from 'discord-api-types/v10'; import { ApplicationCommandOptionBase } from '../mixins/ApplicationCommandOptionBase.js'; export class SlashCommandAttachmentOption extends ApplicationCommandOptionBase { diff --git a/packages/builders/src/interactions/slashCommands/options/boolean.ts b/packages/builders/src/interactions/slashCommands/options/boolean.ts index 6ce61ebdb2588..f2c9768bad6ef 100644 --- a/packages/builders/src/interactions/slashCommands/options/boolean.ts +++ b/packages/builders/src/interactions/slashCommands/options/boolean.ts @@ -1,5 +1,4 @@ -import type { APIApplicationCommandBooleanOption } from 'discord-api-types/v10'; -import { ApplicationCommandOptionType } from 'discord-api-types/v10'; +import { ApplicationCommandOptionType, type APIApplicationCommandBooleanOption } from 'discord-api-types/v10'; import { ApplicationCommandOptionBase } from '../mixins/ApplicationCommandOptionBase.js'; export class SlashCommandBooleanOption extends ApplicationCommandOptionBase { diff --git a/packages/builders/src/interactions/slashCommands/options/channel.ts b/packages/builders/src/interactions/slashCommands/options/channel.ts index 047538a5653ff..e3dac0aa6c158 100644 --- a/packages/builders/src/interactions/slashCommands/options/channel.ts +++ b/packages/builders/src/interactions/slashCommands/options/channel.ts @@ -1,5 +1,4 @@ -import type { APIApplicationCommandChannelOption } from 'discord-api-types/v10'; -import { ApplicationCommandOptionType } from 'discord-api-types/v10'; +import { ApplicationCommandOptionType, type APIApplicationCommandChannelOption } from 'discord-api-types/v10'; import { mix } from 'ts-mixer'; import { ApplicationCommandOptionBase } from '../mixins/ApplicationCommandOptionBase.js'; import { ApplicationCommandOptionChannelTypesMixin } from '../mixins/ApplicationCommandOptionChannelTypesMixin.js'; diff --git a/packages/builders/src/interactions/slashCommands/options/integer.ts b/packages/builders/src/interactions/slashCommands/options/integer.ts index c735e165868b1..e8a98f4c44d0d 100644 --- a/packages/builders/src/interactions/slashCommands/options/integer.ts +++ b/packages/builders/src/interactions/slashCommands/options/integer.ts @@ -1,6 +1,5 @@ import { s } from '@sapphire/shapeshift'; -import type { APIApplicationCommandIntegerOption } from 'discord-api-types/v10'; -import { ApplicationCommandOptionType } from 'discord-api-types/v10'; +import { ApplicationCommandOptionType, type APIApplicationCommandIntegerOption } from 'discord-api-types/v10'; import { mix } from 'ts-mixer'; import { ApplicationCommandNumericOptionMinMaxValueMixin } from '../mixins/ApplicationCommandNumericOptionMinMaxValueMixin.js'; import { ApplicationCommandOptionBase } from '../mixins/ApplicationCommandOptionBase.js'; diff --git a/packages/builders/src/interactions/slashCommands/options/mentionable.ts b/packages/builders/src/interactions/slashCommands/options/mentionable.ts index 5bed88c80a138..91a0416dfd620 100644 --- a/packages/builders/src/interactions/slashCommands/options/mentionable.ts +++ b/packages/builders/src/interactions/slashCommands/options/mentionable.ts @@ -1,5 +1,4 @@ -import type { APIApplicationCommandMentionableOption } from 'discord-api-types/v10'; -import { ApplicationCommandOptionType } from 'discord-api-types/v10'; +import { ApplicationCommandOptionType, type APIApplicationCommandMentionableOption } from 'discord-api-types/v10'; import { ApplicationCommandOptionBase } from '../mixins/ApplicationCommandOptionBase.js'; export class SlashCommandMentionableOption extends ApplicationCommandOptionBase { diff --git a/packages/builders/src/interactions/slashCommands/options/number.ts b/packages/builders/src/interactions/slashCommands/options/number.ts index 4569611d93ee4..80b5cd6e5593c 100644 --- a/packages/builders/src/interactions/slashCommands/options/number.ts +++ b/packages/builders/src/interactions/slashCommands/options/number.ts @@ -1,6 +1,5 @@ import { s } from '@sapphire/shapeshift'; -import type { APIApplicationCommandNumberOption } from 'discord-api-types/v10'; -import { ApplicationCommandOptionType } from 'discord-api-types/v10'; +import { ApplicationCommandOptionType, type APIApplicationCommandNumberOption } from 'discord-api-types/v10'; import { mix } from 'ts-mixer'; import { ApplicationCommandNumericOptionMinMaxValueMixin } from '../mixins/ApplicationCommandNumericOptionMinMaxValueMixin.js'; import { ApplicationCommandOptionBase } from '../mixins/ApplicationCommandOptionBase.js'; diff --git a/packages/builders/src/interactions/slashCommands/options/role.ts b/packages/builders/src/interactions/slashCommands/options/role.ts index 0e76f097a9afb..4f5871d56069f 100644 --- a/packages/builders/src/interactions/slashCommands/options/role.ts +++ b/packages/builders/src/interactions/slashCommands/options/role.ts @@ -1,5 +1,4 @@ -import type { APIApplicationCommandRoleOption } from 'discord-api-types/v10'; -import { ApplicationCommandOptionType } from 'discord-api-types/v10'; +import { ApplicationCommandOptionType, type APIApplicationCommandRoleOption } from 'discord-api-types/v10'; import { ApplicationCommandOptionBase } from '../mixins/ApplicationCommandOptionBase.js'; export class SlashCommandRoleOption extends ApplicationCommandOptionBase { diff --git a/packages/builders/src/interactions/slashCommands/options/string.ts b/packages/builders/src/interactions/slashCommands/options/string.ts index 9902eac8917e0..345b7934a12aa 100644 --- a/packages/builders/src/interactions/slashCommands/options/string.ts +++ b/packages/builders/src/interactions/slashCommands/options/string.ts @@ -1,6 +1,5 @@ import { s } from '@sapphire/shapeshift'; -import type { APIApplicationCommandStringOption } from 'discord-api-types/v10'; -import { ApplicationCommandOptionType } from 'discord-api-types/v10'; +import { ApplicationCommandOptionType, type APIApplicationCommandStringOption } from 'discord-api-types/v10'; import { mix } from 'ts-mixer'; import { ApplicationCommandOptionBase } from '../mixins/ApplicationCommandOptionBase.js'; import { ApplicationCommandOptionWithChoicesAndAutocompleteMixin } from '../mixins/ApplicationCommandOptionWithChoicesAndAutocompleteMixin.js'; diff --git a/packages/builders/src/interactions/slashCommands/options/user.ts b/packages/builders/src/interactions/slashCommands/options/user.ts index 047c81d328eef..609450fa5d116 100644 --- a/packages/builders/src/interactions/slashCommands/options/user.ts +++ b/packages/builders/src/interactions/slashCommands/options/user.ts @@ -1,5 +1,4 @@ -import type { APIApplicationCommandUserOption } from 'discord-api-types/v10'; -import { ApplicationCommandOptionType } from 'discord-api-types/v10'; +import { ApplicationCommandOptionType, type APIApplicationCommandUserOption } from 'discord-api-types/v10'; import { ApplicationCommandOptionBase } from '../mixins/ApplicationCommandOptionBase.js'; export class SlashCommandUserOption extends ApplicationCommandOptionBase { diff --git a/packages/collection/package.json b/packages/collection/package.json index 2ea7b6b20d115..5be203bae3298 100644 --- a/packages/collection/package.json +++ b/packages/collection/package.json @@ -59,8 +59,7 @@ "@vitest/coverage-c8": "^0.22.1", "downlevel-dts": "^0.10.1", "eslint": "^8.23.0", - "eslint-config-marine": "^9.4.1", - "eslint-config-neon": "^0.1.13", + "eslint-config-neon": "^0.1.22", "eslint-config-prettier": "^8.5.0", "eslint-import-resolver-typescript": "^3.5.0", "eslint-plugin-import": "^2.26.0", diff --git a/packages/discord.js/package.json b/packages/discord.js/package.json index 901ce53c43db7..a2908c2c522d8 100644 --- a/packages/discord.js/package.json +++ b/packages/discord.js/package.json @@ -67,7 +67,7 @@ "@types/node": "^16.11.56", "dtslint": "^4.2.1", "eslint": "^8.23.0", - "eslint-config-neon": "latest", + "eslint-config-neon": "^0.1.22", "jest": "^29.0.1", "prettier": "^2.7.1", "tsd": "^0.23.0", diff --git a/packages/docgen/package.json b/packages/docgen/package.json index 615c0fc3d7ac1..75734734ff449 100644 --- a/packages/docgen/package.json +++ b/packages/docgen/package.json @@ -54,7 +54,6 @@ "@typescript-eslint/eslint-plugin": "^5.36.1", "@typescript-eslint/parser": "^5.36.1", "eslint": "^8.23.0", - "eslint-config-marine": "^9.4.1", "eslint-config-prettier": "^8.5.0", "eslint-import-resolver-typescript": "^3.5.0", "eslint-plugin-import": "^2.26.0", diff --git a/packages/docgen/src/cli.ts b/packages/docgen/src/cli.ts index 435ff20edc0df..9ecfeed3b519a 100644 --- a/packages/docgen/src/cli.ts +++ b/packages/docgen/src/cli.ts @@ -1,3 +1,5 @@ +#!/usr/bin/env node +/* eslint-disable n/shebang */ import process from 'node:process'; import { createCommand } from 'commander'; import packageFile from '../package.json'; diff --git a/packages/proxy-container/package.json b/packages/proxy-container/package.json index b78db43437b1a..cb729176d26d7 100644 --- a/packages/proxy-container/package.json +++ b/packages/proxy-container/package.json @@ -53,8 +53,7 @@ "@typescript-eslint/eslint-plugin": "^5.36.1", "@typescript-eslint/parser": "^5.36.1", "eslint": "^8.23.0", - "eslint-config-marine": "^9.4.1", - "eslint-config-neon": "^0.1.13", + "eslint-config-neon": "^0.1.22", "eslint-config-prettier": "^8.5.0", "eslint-import-resolver-typescript": "^3.5.0", "eslint-plugin-import": "^2.26.0", diff --git a/packages/proxy/__tests__/proxyRequests.test.ts b/packages/proxy/__tests__/proxyRequests.test.ts index 095003ec7e100..f956958be8b54 100644 --- a/packages/proxy/__tests__/proxyRequests.test.ts +++ b/packages/proxy/__tests__/proxyRequests.test.ts @@ -1,8 +1,7 @@ import { createServer } from 'node:http'; import { REST } from '@discordjs/rest'; import supertest from 'supertest'; -import type { Interceptable } from 'undici'; -import { MockAgent, setGlobalDispatcher } from 'undici'; +import { MockAgent, setGlobalDispatcher, type Interceptable } from 'undici'; import type { MockInterceptor } from 'undici/types/mock-interceptor'; import { beforeEach, afterAll, afterEach, test, expect } from 'vitest'; import { proxyRequests } from '../src/index.js'; diff --git a/packages/proxy/package.json b/packages/proxy/package.json index 677fb8e60e48b..5878daf445584 100644 --- a/packages/proxy/package.json +++ b/packages/proxy/package.json @@ -69,8 +69,7 @@ "@vitest/coverage-c8": "^0.22.1", "downlevel-dts": "^0.10.1", "eslint": "^8.23.0", - "eslint-config-marine": "^9.4.1", - "eslint-config-neon": "^0.1.13", + "eslint-config-neon": "^0.1.22", "eslint-config-prettier": "^8.5.0", "eslint-import-resolver-typescript": "^3.5.0", "eslint-plugin-import": "^2.26.0", diff --git a/packages/proxy/src/handlers/proxyRequests.ts b/packages/proxy/src/handlers/proxyRequests.ts index 6347b06ab90b1..1efb8601f3557 100644 --- a/packages/proxy/src/handlers/proxyRequests.ts +++ b/packages/proxy/src/handlers/proxyRequests.ts @@ -1,6 +1,12 @@ import { URL } from 'node:url'; -import type { RequestMethod, REST, RouteLike } from '@discordjs/rest'; -import { DiscordAPIError, HTTPError, RateLimitError } from '@discordjs/rest'; +import { + DiscordAPIError, + HTTPError, + RateLimitError, + type RequestMethod, + type REST, + type RouteLike, +} from '@discordjs/rest'; import { populateAbortErrorResponse, populateGeneralErrorResponse, diff --git a/packages/rest/__tests__/RequestManager.test.ts b/packages/rest/__tests__/RequestManager.test.ts index cc6d3c595d1f8..73dcf62853652 100644 --- a/packages/rest/__tests__/RequestManager.test.ts +++ b/packages/rest/__tests__/RequestManager.test.ts @@ -1,5 +1,4 @@ -import { MockAgent, setGlobalDispatcher } from 'undici'; -import type { Interceptable } from 'undici/types/mock-interceptor'; +import { MockAgent, setGlobalDispatcher, type Interceptable } from 'undici'; import { beforeEach, afterEach, test, expect } from 'vitest'; import { REST } from '../src/index.js'; import { genPath } from './util.js'; diff --git a/packages/rest/package.json b/packages/rest/package.json index ef173fafd935e..d39083437deb7 100644 --- a/packages/rest/package.json +++ b/packages/rest/package.json @@ -70,8 +70,7 @@ "@vitest/coverage-c8": "^0.22.1", "downlevel-dts": "^0.10.1", "eslint": "^8.23.0", - "eslint-config-marine": "^9.4.1", - "eslint-config-neon": "^0.1.13", + "eslint-config-neon": "^0.1.22", "eslint-config-prettier": "^8.5.0", "eslint-import-resolver-typescript": "^3.5.0", "eslint-plugin-import": "^2.26.0", diff --git a/packages/rest/src/lib/CDN.ts b/packages/rest/src/lib/CDN.ts index 833477a168fc2..327225fd4aed1 100644 --- a/packages/rest/src/lib/CDN.ts +++ b/packages/rest/src/lib/CDN.ts @@ -1,11 +1,13 @@ /* eslint-disable jsdoc/check-param-names */ import { URL } from 'node:url'; -import type { ImageExtension, ImageSize, StickerExtension } from './utils/constants'; import { ALLOWED_EXTENSIONS, ALLOWED_SIZES, ALLOWED_STICKER_EXTENSIONS, DefaultRestOptions, + type ImageExtension, + type ImageSize, + type StickerExtension, } from './utils/constants.js'; /** diff --git a/packages/rest/src/lib/REST.ts b/packages/rest/src/lib/REST.ts index 6f19107aaec41..7b2a1afd40609 100644 --- a/packages/rest/src/lib/REST.ts +++ b/packages/rest/src/lib/REST.ts @@ -2,8 +2,15 @@ import { EventEmitter } from 'node:events'; import type { Collection } from '@discordjs/collection'; import type { request, Dispatcher } from 'undici'; import { CDN } from './CDN.js'; -import { RequestManager, RequestMethod } from './RequestManager.js'; -import type { HashData, HandlerRequestData, InternalRequest, RequestData, RouteLike } from './RequestManager.js'; +import { + RequestManager, + RequestMethod, + type HashData, + type HandlerRequestData, + type InternalRequest, + type RequestData, + type RouteLike, +} from './RequestManager.js'; import type { IHandler } from './handlers/IHandler'; import { DefaultRestOptions, RESTEvents } from './utils/constants.js'; import { parseResponse } from './utils/utils.js'; diff --git a/packages/rest/src/lib/RequestManager.ts b/packages/rest/src/lib/RequestManager.ts index b32f4ea7325c1..594ad128df404 100644 --- a/packages/rest/src/lib/RequestManager.ts +++ b/packages/rest/src/lib/RequestManager.ts @@ -4,8 +4,7 @@ import { setInterval, clearInterval } from 'node:timers'; import type { URLSearchParams } from 'node:url'; import { Collection } from '@discordjs/collection'; import { DiscordSnowflake } from '@sapphire/snowflake'; -import type { Agent } from 'undici'; -import { FormData, type RequestInit, type BodyInit, type Dispatcher } from 'undici'; +import { FormData, type RequestInit, type BodyInit, type Dispatcher, type Agent } from 'undici'; import type { RESTOptions, RestEvents, RequestOptions } from './REST'; import type { IHandler } from './handlers/IHandler'; import { SequentialHandler } from './handlers/SequentialHandler.js'; diff --git a/packages/rest/src/lib/handlers/SequentialHandler.ts b/packages/rest/src/lib/handlers/SequentialHandler.ts index 6a8c9a2eb4410..fe179fd504b41 100644 --- a/packages/rest/src/lib/handlers/SequentialHandler.ts +++ b/packages/rest/src/lib/handlers/SequentialHandler.ts @@ -4,8 +4,7 @@ import { AsyncQueue } from '@sapphire/async-queue'; import { request, type Dispatcher } from 'undici'; import type { RateLimitData, RequestOptions } from '../REST'; import type { HandlerRequestData, RequestManager, RouteData } from '../RequestManager'; -import type { DiscordErrorData, OAuthErrorData } from '../errors/DiscordAPIError'; -import { DiscordAPIError } from '../errors/DiscordAPIError.js'; +import { DiscordAPIError, type DiscordErrorData, type OAuthErrorData } from '../errors/DiscordAPIError.js'; import { HTTPError } from '../errors/HTTPError.js'; import { RateLimitError } from '../errors/RateLimitError.js'; import { RESTEvents } from '../utils/constants.js'; diff --git a/packages/scripts/package.json b/packages/scripts/package.json index 1ed9c5072e156..5820ccd908ca9 100644 --- a/packages/scripts/package.json +++ b/packages/scripts/package.json @@ -55,8 +55,7 @@ "@typescript-eslint/parser": "^5.36.1", "@vitest/coverage-c8": "^0.22.1", "eslint": "^8.23.0", - "eslint-config-marine": "^9.4.1", - "eslint-config-neon": "^0.1.13", + "eslint-config-neon": "^0.1.22", "eslint-config-prettier": "^8.5.0", "eslint-import-resolver-typescript": "^3.5.0", "eslint-plugin-import": "^2.26.0", diff --git a/packages/scripts/src/generateIndex.ts b/packages/scripts/src/generateIndex.ts index 2feb2442d2a9d..95b6e197f743e 100644 --- a/packages/scripts/src/generateIndex.ts +++ b/packages/scripts/src/generateIndex.ts @@ -1,10 +1,8 @@ import { stat, mkdir, writeFile } from 'node:fs/promises'; import { join } from 'node:path'; import { generatePath } from '@discordjs/api-extractor-utils'; -import type { ApiItem, ApiModel } from '@microsoft/api-extractor-model'; -import { ApiDeclaredItem, ApiItemContainerMixin } from '@microsoft/api-extractor-model'; -import type { DocCodeSpan, DocNode, DocParagraph, DocPlainText } from '@microsoft/tsdoc'; -import { DocNodeKind } from '@microsoft/tsdoc'; +import { ApiDeclaredItem, ApiItemContainerMixin, type ApiItem, type ApiModel } from '@microsoft/api-extractor-model'; +import { DocNodeKind, type DocCodeSpan, type DocNode, type DocParagraph, type DocPlainText } from '@microsoft/tsdoc'; export interface MemberJSON { kind: string; diff --git a/packages/voice/__tests__/AudioPlayer.test.ts b/packages/voice/__tests__/AudioPlayer.test.ts index b151d7b40603f..544b2526278bd 100644 --- a/packages/voice/__tests__/AudioPlayer.test.ts +++ b/packages/voice/__tests__/AudioPlayer.test.ts @@ -8,8 +8,7 @@ import process from 'node:process'; import { Readable } from 'node:stream'; import { addAudioPlayer, deleteAudioPlayer } from '../src/DataStore'; import { VoiceConnection, VoiceConnectionStatus } from '../src/VoiceConnection'; -import type { AudioPlayer } from '../src/audio/AudioPlayer'; -import { createAudioPlayer, AudioPlayerStatus, SILENCE_FRAME } from '../src/audio/AudioPlayer'; +import { createAudioPlayer, AudioPlayerStatus, SILENCE_FRAME, type AudioPlayerState } from '../src/audio/AudioPlayer'; import { AudioPlayerError } from '../src/audio/AudioPlayerError'; import { AudioResource } from '../src/audio/AudioResource'; import { NoSubscriberBehavior } from '../src/index'; diff --git a/packages/voice/__tests__/AudioResource.test.ts b/packages/voice/__tests__/AudioResource.test.ts index bddd5918d1af1..9a1bb2872ca4e 100644 --- a/packages/voice/__tests__/AudioResource.test.ts +++ b/packages/voice/__tests__/AudioResource.test.ts @@ -5,8 +5,7 @@ import { PassThrough, Readable } from 'node:stream'; import { opus, VolumeTransformer } from 'prism-media'; import { SILENCE_FRAME } from '../src/audio/AudioPlayer'; import { AudioResource, createAudioResource, NO_CONSTRAINT, VOLUME_CONSTRAINT } from '../src/audio/AudioResource'; -import type { Edge } from '../src/audio/TransformerGraph'; -import { findPipeline as _findPipeline, StreamType, TransformerType } from '../src/audio/TransformerGraph'; +import { findPipeline as _findPipeline, StreamType, TransformerType, type Edge } from '../src/audio/TransformerGraph'; jest.mock('prism-media'); jest.mock('../src/audio/TransformerGraph'); diff --git a/packages/voice/__tests__/SSRCMap.test.ts b/packages/voice/__tests__/SSRCMap.test.ts index 47ad9b2e1beb6..1da3f26e8b8e6 100644 --- a/packages/voice/__tests__/SSRCMap.test.ts +++ b/packages/voice/__tests__/SSRCMap.test.ts @@ -2,8 +2,7 @@ import type EventEmitter from 'node:events'; import { once } from 'node:events'; import process from 'node:process'; -import type { VoiceUserData } from '../src/receive/SSRCMap'; -import { SSRCMap } from '../src/receive/SSRCMap'; +import { SSRCMap, type VoiceUserData } from '../src/receive/SSRCMap'; async function onceOrThrow(target: T, event: string, after: number) { return new Promise((resolve, reject) => { diff --git a/packages/voice/__tests__/TransformerGraph.test.ts b/packages/voice/__tests__/TransformerGraph.test.ts index e4267bb0105cb..3a887381dd50f 100644 --- a/packages/voice/__tests__/TransformerGraph.test.ts +++ b/packages/voice/__tests__/TransformerGraph.test.ts @@ -1,5 +1,4 @@ -import type { Edge } from '../src/audio/TransformerGraph'; -import { findPipeline, StreamType, TransformerType } from '../src/audio/TransformerGraph'; +import { findPipeline, StreamType, TransformerType, type Edge } from '../src/audio/TransformerGraph'; const noConstraint = () => true; diff --git a/packages/voice/__tests__/VoiceConnection.test.ts b/packages/voice/__tests__/VoiceConnection.test.ts index 361f98c327c96..350013db51672 100644 --- a/packages/voice/__tests__/VoiceConnection.test.ts +++ b/packages/voice/__tests__/VoiceConnection.test.ts @@ -6,16 +6,14 @@ /* eslint-disable @typescript-eslint/dot-notation */ import EventEmitter from 'node:events'; import * as _DataStore from '../src/DataStore'; -import type { - VoiceConnectionConnectingState, - VoiceConnectionReadyState, - VoiceConnectionSignallingState, -} from '../src/VoiceConnection'; import { createVoiceConnection, VoiceConnection, VoiceConnectionDisconnectReason, VoiceConnectionStatus, + type VoiceConnectionConnectingState, + type VoiceConnectionReadyState, + type VoiceConnectionSignallingState, } from '../src/VoiceConnection'; import * as _AudioPlayer from '../src/audio/AudioPlayer'; import { PlayerSubscription as _PlayerSubscription } from '../src/audio/PlayerSubscription'; diff --git a/packages/voice/__tests__/entersState.test.ts b/packages/voice/__tests__/entersState.test.ts index c456a6a59696c..e2f10d888a98c 100644 --- a/packages/voice/__tests__/entersState.test.ts +++ b/packages/voice/__tests__/entersState.test.ts @@ -2,8 +2,7 @@ /* eslint-disable @typescript-eslint/no-unsafe-assignment */ import EventEmitter from 'node:events'; import process from 'node:process'; -import type { VoiceConnection } from '../src/VoiceConnection'; -import { VoiceConnectionStatus } from '../src/VoiceConnection'; +import { VoiceConnectionStatus, type VoiceConnection } from '../src/VoiceConnection'; import { entersState } from '../src/util/entersState'; function createFakeVoiceConnection(status = VoiceConnectionStatus.Signalling) { diff --git a/packages/voice/examples/basic/adapter.ts b/packages/voice/examples/basic/adapter.ts index 1001a6b1ed3cd..6e7b1bf0c2195 100644 --- a/packages/voice/examples/basic/adapter.ts +++ b/packages/voice/examples/basic/adapter.ts @@ -1,5 +1,5 @@ import { DiscordGatewayAdapterCreator, DiscordGatewayAdapterLibraryMethods } from '../../'; -import { Snowflake, Client, Guild, VoiceBasedChannel, Status, Events } from 'discord'; +import { Snowflake, Client, Guild, VoiceBasedChannel, Status, Events } from 'discord.js'; import { GatewayDispatchEvents, GatewayVoiceServerUpdateDispatchData, diff --git a/packages/voice/examples/basic/basic-example.ts b/packages/voice/examples/basic/basic-example.ts index 50390d682944c..00222e956974c 100644 --- a/packages/voice/examples/basic/basic-example.ts +++ b/packages/voice/examples/basic/basic-example.ts @@ -1,4 +1,4 @@ -import { Client, VoiceBasedChannel, VoiceChannel } from 'discord'; +import { Client, VoiceBasedChannel, VoiceChannel } from 'discord.js'; import { joinVoiceChannel, createAudioPlayer, diff --git a/packages/voice/package.json b/packages/voice/package.json index 420f64e26e17f..9164766bdca6c 100644 --- a/packages/voice/package.json +++ b/packages/voice/package.json @@ -71,8 +71,7 @@ "@typescript-eslint/parser": "^5.36.1", "downlevel-dts": "^0.10.1", "eslint": "^8.23.0", - "eslint-config-marine": "^9.4.1", - "eslint-config-neon": "^0.1.13", + "eslint-config-neon": "^0.1.22", "eslint-config-prettier": "^8.5.0", "eslint-import-resolver-typescript": "^3.5.0", "eslint-plugin-import": "^2.26.0", diff --git a/packages/voice/src/VoiceConnection.ts b/packages/voice/src/VoiceConnection.ts index f38cca47482a8..2f83d3d8c550f 100644 --- a/packages/voice/src/VoiceConnection.ts +++ b/packages/voice/src/VoiceConnection.ts @@ -15,8 +15,7 @@ import { import type { AudioPlayer } from './audio/AudioPlayer'; import type { PlayerSubscription } from './audio/PlayerSubscription'; import type { VoiceWebSocket, VoiceUDPSocket } from './networking'; -import type { NetworkingState } from './networking/Networking'; -import { Networking, NetworkingStatusCode } from './networking/Networking'; +import { Networking, NetworkingStatusCode, type NetworkingState } from './networking/Networking'; import { VoiceReceiver } from './receive/index'; import type { DiscordGatewayAdapterImplementerMethods } from './util/adapter'; import { noop } from './util/util'; diff --git a/packages/voice/src/audio/AudioPlayer.ts b/packages/voice/src/audio/AudioPlayer.ts index 2adf17f9036e6..175891e7b55a3 100644 --- a/packages/voice/src/audio/AudioPlayer.ts +++ b/packages/voice/src/audio/AudioPlayer.ts @@ -2,8 +2,7 @@ import { Buffer } from 'node:buffer'; import EventEmitter from 'node:events'; import { addAudioPlayer, deleteAudioPlayer } from '../DataStore'; -import type { VoiceConnection } from '../VoiceConnection'; -import { VoiceConnectionStatus } from '../VoiceConnection'; +import { VoiceConnectionStatus, type VoiceConnection } from '../VoiceConnection'; import { noop } from '../util/util'; import { AudioPlayerError } from './AudioPlayerError'; import type { AudioResource } from './AudioResource'; diff --git a/packages/voice/src/audio/AudioResource.ts b/packages/voice/src/audio/AudioResource.ts index badd9e955cad4..0deaccf32bc1f 100644 --- a/packages/voice/src/audio/AudioResource.ts +++ b/packages/voice/src/audio/AudioResource.ts @@ -1,12 +1,9 @@ import type { Buffer } from 'node:buffer'; -import type { Readable } from 'node:stream'; -import { pipeline } from 'node:stream'; +import { pipeline, type Readable } from 'node:stream'; import prism from 'prism-media'; import { noop } from '../util/util'; -import type { AudioPlayer } from './AudioPlayer'; -import { SILENCE_FRAME } from './AudioPlayer'; -import type { Edge } from './TransformerGraph'; -import { findPipeline, StreamType, TransformerType } from './TransformerGraph'; +import { SILENCE_FRAME, type AudioPlayer } from './AudioPlayer'; +import { findPipeline, StreamType, TransformerType, type Edge } from './TransformerGraph'; /** * Options that are set when creating a new audio resource. diff --git a/packages/voice/src/networking/VoiceUDPSocket.ts b/packages/voice/src/networking/VoiceUDPSocket.ts index 84761a80280fc..7a0c77363090c 100644 --- a/packages/voice/src/networking/VoiceUDPSocket.ts +++ b/packages/voice/src/networking/VoiceUDPSocket.ts @@ -1,7 +1,6 @@ /* eslint-disable @typescript-eslint/method-signature-style */ import { Buffer } from 'node:buffer'; -import type { Socket } from 'node:dgram'; -import { createSocket } from 'node:dgram'; +import { createSocket, type Socket } from 'node:dgram'; import { EventEmitter } from 'node:events'; import { isIPv4 } from 'node:net'; diff --git a/packages/voice/src/networking/VoiceWebSocket.ts b/packages/voice/src/networking/VoiceWebSocket.ts index 98a9f823b95a2..4c8cd1dd0eab5 100644 --- a/packages/voice/src/networking/VoiceWebSocket.ts +++ b/packages/voice/src/networking/VoiceWebSocket.ts @@ -1,8 +1,7 @@ /* eslint-disable @typescript-eslint/method-signature-style */ import { EventEmitter } from 'node:events'; import { VoiceOpcodes } from 'discord-api-types/voice/v4'; -import type { MessageEvent } from 'ws'; -import WebSocket from 'ws'; +import WebSocket, { type MessageEvent } from 'ws'; export interface VoiceWebSocket extends EventEmitter { on(event: 'error', listener: (error: Error) => void): this; diff --git a/packages/voice/src/receive/AudioReceiveStream.ts b/packages/voice/src/receive/AudioReceiveStream.ts index 813be6578a7a8..ac25a026d75c5 100644 --- a/packages/voice/src/receive/AudioReceiveStream.ts +++ b/packages/voice/src/receive/AudioReceiveStream.ts @@ -1,6 +1,5 @@ import type { Buffer } from 'node:buffer'; -import type { ReadableOptions } from 'node:stream'; -import { Readable } from 'node:stream'; +import { Readable, type ReadableOptions } from 'node:stream'; import { SILENCE_FRAME } from '../audio/AudioPlayer'; /** diff --git a/packages/voice/src/receive/VoiceReceiver.ts b/packages/voice/src/receive/VoiceReceiver.ts index 7b008c9c08e69..f4d21229c6010 100644 --- a/packages/voice/src/receive/VoiceReceiver.ts +++ b/packages/voice/src/receive/VoiceReceiver.ts @@ -4,8 +4,11 @@ import { VoiceOpcodes } from 'discord-api-types/voice/v4'; import type { VoiceConnection } from '../VoiceConnection'; import type { ConnectionData } from '../networking/Networking'; import { methods } from '../util/Secretbox'; -import type { AudioReceiveStreamOptions } from './AudioReceiveStream'; -import { AudioReceiveStream, createDefaultAudioReceiveStreamOptions } from './AudioReceiveStream'; +import { + AudioReceiveStream, + createDefaultAudioReceiveStreamOptions, + type AudioReceiveStreamOptions, +} from './AudioReceiveStream'; import { SSRCMap } from './SSRCMap'; import { SpeakingMap } from './SpeakingMap'; diff --git a/packages/website/package.json b/packages/website/package.json index b13dc34adc24a..2fe61b87ba565 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -81,8 +81,7 @@ "@vitest/coverage-c8": "^0.22.1", "concurrently": "^7.3.0", "eslint": "^8.23.0", - "eslint-config-marine": "^9.4.1", - "eslint-config-neon": "latest", + "eslint-config-neon": "^0.1.22", "eslint-config-prettier": "^8.5.0", "eslint-import-resolver-typescript": "^3.5.0", "eslint-plugin-import": "^2.26.0", diff --git a/packages/website/src/middleware.ts b/packages/website/src/middleware.ts index a8b6fe738c5a4..ea972caa05cc8 100644 --- a/packages/website/src/middleware.ts +++ b/packages/website/src/middleware.ts @@ -1,6 +1,5 @@ import { URL } from 'node:url'; -import { NextResponse } from 'next/server'; -import type { NextRequest } from 'next/server'; +import { NextResponse, type NextRequest } from 'next/server'; export default function middleware(request: NextRequest) { return NextResponse.redirect(new URL('/docs/packages', request.url)); diff --git a/packages/ws/__tests__/strategy/WorkerContextFetchingStrategy.test.ts b/packages/ws/__tests__/strategy/WorkerContextFetchingStrategy.test.ts index f0fe6b3b75717..7ce3de334ebcb 100644 --- a/packages/ws/__tests__/strategy/WorkerContextFetchingStrategy.test.ts +++ b/packages/ws/__tests__/strategy/WorkerContextFetchingStrategy.test.ts @@ -1,15 +1,15 @@ /* eslint-disable @typescript-eslint/consistent-type-imports */ import { REST } from '@discordjs/rest'; -import type { Interceptable } from 'undici'; -import { MockAgent } from 'undici'; +import { MockAgent, type Interceptable } from 'undici'; import { beforeEach, test, vi, expect } from 'vitest'; -import type { WorkerRecievePayload, WorkerSendPayload } from '../../src'; import { managerToFetchingStrategyOptions, WorkerContextFetchingStrategy, WebSocketManager, WorkerSendPayloadOp, WorkerRecievePayloadOp, + type WorkerRecievePayload, + type WorkerSendPayload, } from '../../src/index.js'; let mockAgent: MockAgent; diff --git a/packages/ws/__tests__/strategy/WorkerShardingStrategy.test.ts b/packages/ws/__tests__/strategy/WorkerShardingStrategy.test.ts index 524c2f79dc4cc..69ace627b76e0 100644 --- a/packages/ws/__tests__/strategy/WorkerShardingStrategy.test.ts +++ b/packages/ws/__tests__/strategy/WorkerShardingStrategy.test.ts @@ -1,18 +1,23 @@ /* eslint-disable id-length */ import { setImmediate } from 'node:timers'; import { REST } from '@discordjs/rest'; -import type { GatewayDispatchPayload, GatewaySendPayload } from 'discord-api-types/v10'; -import { GatewayDispatchEvents, GatewayOpcodes } from 'discord-api-types/v10'; -import type { Interceptable } from 'undici'; -import { MockAgent } from 'undici'; +import { + GatewayDispatchEvents, + GatewayOpcodes, + type GatewayDispatchPayload, + type GatewaySendPayload, +} from 'discord-api-types/v10'; +import { MockAgent, type Interceptable } from 'undici'; import { beforeEach, test, vi, expect, afterEach } from 'vitest'; -import type { WorkerRecievePayload, WorkerSendPayload, SessionInfo } from '../../src'; import { WebSocketManager, WorkerSendPayloadOp, WorkerRecievePayloadOp, WorkerShardingStrategy, WebSocketShardEvents, + type WorkerRecievePayload, + type WorkerSendPayload, + type SessionInfo, } from '../../src/index.js'; let mockAgent: MockAgent; diff --git a/packages/ws/__tests__/util/IdentifyThrottler.test.ts b/packages/ws/__tests__/util/IdentifyThrottler.test.ts index 0a0d3570dac3a..74417d5881eb9 100644 --- a/packages/ws/__tests__/util/IdentifyThrottler.test.ts +++ b/packages/ws/__tests__/util/IdentifyThrottler.test.ts @@ -1,8 +1,6 @@ import { setTimeout as sleep } from 'node:timers/promises'; -import type { Mock } from 'vitest'; -import { expect, test, vi } from 'vitest'; -import type { WebSocketManager } from '../../src'; -import { IdentifyThrottler } from '../../src/index.js'; +import { expect, test, vi, type Mock } from 'vitest'; +import { IdentifyThrottler, type WebSocketManager } from '../../src/index.js'; vi.mock('node:timers/promises', () => ({ setTimeout: vi.fn(), diff --git a/packages/ws/__tests__/ws/WebSocketManager.test.ts b/packages/ws/__tests__/ws/WebSocketManager.test.ts index 0e79c1c6be738..fad53ae1c39b0 100644 --- a/packages/ws/__tests__/ws/WebSocketManager.test.ts +++ b/packages/ws/__tests__/ws/WebSocketManager.test.ts @@ -1,11 +1,8 @@ import { REST } from '@discordjs/rest'; -import type { APIGatewayBotInfo, GatewaySendPayload } from 'discord-api-types/v10'; -import { GatewayOpcodes } from 'discord-api-types/v10'; -import type { Interceptable } from 'undici'; -import { MockAgent } from 'undici'; +import { GatewayOpcodes, type APIGatewayBotInfo, type GatewaySendPayload } from 'discord-api-types/v10'; +import { MockAgent, type Interceptable } from 'undici'; import { beforeEach, describe, expect, test, vi } from 'vitest'; -import type { IShardingStrategy } from '../../src'; -import { WebSocketManager } from '../../src/index.js'; +import { WebSocketManager, type IShardingStrategy } from '../../src/index.js'; vi.useFakeTimers(); diff --git a/packages/ws/package.json b/packages/ws/package.json index 4bfda0faa92dd..79d4806ac31d8 100644 --- a/packages/ws/package.json +++ b/packages/ws/package.json @@ -71,8 +71,7 @@ "@vitest/coverage-c8": "^0.22.1", "downlevel-dts": "^0.10.1", "eslint": "^8.23.0", - "eslint-config-marine": "^9.4.1", - "eslint-config-neon": "^0.1.13", + "eslint-config-neon": "^0.1.22", "eslint-config-prettier": "^8.5.0", "eslint-import-resolver-typescript": "^3.5.0", "eslint-plugin-import": "^2.26.0", diff --git a/packages/ws/src/strategies/context/WorkerContextFetchingStrategy.ts b/packages/ws/src/strategies/context/WorkerContextFetchingStrategy.ts index 249fe410e8d04..73cf4eb3c6a3a 100644 --- a/packages/ws/src/strategies/context/WorkerContextFetchingStrategy.ts +++ b/packages/ws/src/strategies/context/WorkerContextFetchingStrategy.ts @@ -1,8 +1,12 @@ import { isMainThread, parentPort } from 'node:worker_threads'; import { Collection } from '@discordjs/collection'; import type { SessionInfo } from '../../ws/WebSocketManager'; -import type { WorkerRecievePayload, WorkerSendPayload } from '../sharding/WorkerShardingStrategy'; -import { WorkerRecievePayloadOp, WorkerSendPayloadOp } from '../sharding/WorkerShardingStrategy.js'; +import { + WorkerRecievePayloadOp, + WorkerSendPayloadOp, + type WorkerRecievePayload, + type WorkerSendPayload, +} from '../sharding/WorkerShardingStrategy.js'; import type { FetchingStrategyOptions, IContextFetchingStrategy } from './IContextFetchingStrategy'; export class WorkerContextFetchingStrategy implements IContextFetchingStrategy { diff --git a/packages/ws/src/strategies/sharding/SimpleShardingStrategy.ts b/packages/ws/src/strategies/sharding/SimpleShardingStrategy.ts index 9a8b1388223bc..bfdd7b6418574 100644 --- a/packages/ws/src/strategies/sharding/SimpleShardingStrategy.ts +++ b/packages/ws/src/strategies/sharding/SimpleShardingStrategy.ts @@ -2,8 +2,7 @@ import { Collection } from '@discordjs/collection'; import type { GatewaySendPayload } from 'discord-api-types/v10'; import { IdentifyThrottler } from '../../utils/IdentifyThrottler.js'; import type { WebSocketManager } from '../../ws/WebSocketManager'; -import type { WebSocketShardDestroyOptions } from '../../ws/WebSocketShard'; -import { WebSocketShard, WebSocketShardEvents } from '../../ws/WebSocketShard.js'; +import { WebSocketShard, WebSocketShardEvents, type WebSocketShardDestroyOptions } from '../../ws/WebSocketShard.js'; import { managerToFetchingStrategyOptions } from '../context/IContextFetchingStrategy.js'; import { SimpleContextFetchingStrategy } from '../context/SimpleContextFetchingStrategy.js'; import type { IShardingStrategy } from './IShardingStrategy'; diff --git a/packages/ws/src/strategies/sharding/WorkerShardingStrategy.ts b/packages/ws/src/strategies/sharding/WorkerShardingStrategy.ts index 27a6f6234f4c5..54b7a3ae69104 100644 --- a/packages/ws/src/strategies/sharding/WorkerShardingStrategy.ts +++ b/packages/ws/src/strategies/sharding/WorkerShardingStrategy.ts @@ -6,8 +6,7 @@ import type { GatewaySendPayload } from 'discord-api-types/v10'; import { IdentifyThrottler } from '../../utils/IdentifyThrottler.js'; import type { SessionInfo, WebSocketManager } from '../../ws/WebSocketManager'; import type { WebSocketShardDestroyOptions, WebSocketShardEvents } from '../../ws/WebSocketShard'; -import type { FetchingStrategyOptions } from '../context/IContextFetchingStrategy'; -import { managerToFetchingStrategyOptions } from '../context/IContextFetchingStrategy.js'; +import { managerToFetchingStrategyOptions, type FetchingStrategyOptions } from '../context/IContextFetchingStrategy.js'; import type { IShardingStrategy } from './IShardingStrategy'; export interface WorkerData extends FetchingStrategyOptions { diff --git a/packages/ws/src/strategies/sharding/worker.ts b/packages/ws/src/strategies/sharding/worker.ts index 6cd02a6faea60..9603617c92de3 100644 --- a/packages/ws/src/strategies/sharding/worker.ts +++ b/packages/ws/src/strategies/sharding/worker.ts @@ -1,10 +1,14 @@ import { isMainThread, workerData, parentPort } from 'node:worker_threads'; import { Collection } from '@discordjs/collection'; -import type { WebSocketShardDestroyOptions } from '../../ws/WebSocketShard'; -import { WebSocketShard, WebSocketShardEvents } from '../../ws/WebSocketShard.js'; +import { WebSocketShard, WebSocketShardEvents, type WebSocketShardDestroyOptions } from '../../ws/WebSocketShard.js'; import { WorkerContextFetchingStrategy } from '../context/WorkerContextFetchingStrategy.js'; -import { WorkerRecievePayloadOp, WorkerSendPayloadOp } from './WorkerShardingStrategy.js'; -import type { WorkerData, WorkerRecievePayload, WorkerSendPayload } from './WorkerShardingStrategy.js'; +import { + WorkerRecievePayloadOp, + WorkerSendPayloadOp, + type WorkerData, + type WorkerRecievePayload, + type WorkerSendPayload, +} from './WorkerShardingStrategy.js'; if (isMainThread) { throw new Error('Expected worker script to not be ran within the main thread'); diff --git a/packages/ws/src/ws/WebSocketManager.ts b/packages/ws/src/ws/WebSocketManager.ts index 7271fa59e6598..0bf6c736c849e 100644 --- a/packages/ws/src/ws/WebSocketManager.ts +++ b/packages/ws/src/ws/WebSocketManager.ts @@ -1,20 +1,18 @@ import type { REST } from '@discordjs/rest'; import { AsyncEventEmitter } from '@vladfrangu/async_event_emitter'; -import type { - APIGatewayBotInfo, - GatewayIdentifyProperties, - GatewayPresenceUpdateData, - RESTGetAPIGatewayBotResult, - GatewayIntentBits, - GatewaySendPayload, +import { + Routes, + type APIGatewayBotInfo, + type GatewayIdentifyProperties, + type GatewayPresenceUpdateData, + type RESTGetAPIGatewayBotResult, + type GatewayIntentBits, + type GatewaySendPayload, } from 'discord-api-types/v10'; -import { Routes } from 'discord-api-types/v10'; import type { IShardingStrategy } from '../strategies/sharding/IShardingStrategy'; import { SimpleShardingStrategy } from '../strategies/sharding/SimpleShardingStrategy.js'; -import type { CompressionMethod, Encoding } from '../utils/constants'; -import { DefaultWebSocketManagerOptions } from '../utils/constants.js'; -import type { Awaitable } from '../utils/utils'; -import { range } from '../utils/utils.js'; +import { DefaultWebSocketManagerOptions, type CompressionMethod, type Encoding } from '../utils/constants.js'; +import { range, type Awaitable } from '../utils/utils.js'; import type { WebSocketShardDestroyOptions, WebSocketShardEventsMap } from './WebSocketShard'; /** diff --git a/packages/ws/src/ws/WebSocketShard.ts b/packages/ws/src/ws/WebSocketShard.ts index 04cbbb87e2d86..7a414b170750e 100644 --- a/packages/ws/src/ws/WebSocketShard.ts +++ b/packages/ws/src/ws/WebSocketShard.ts @@ -9,15 +9,16 @@ import { inflate } from 'node:zlib'; import { Collection } from '@discordjs/collection'; import { AsyncQueue } from '@sapphire/async-queue'; import { AsyncEventEmitter } from '@vladfrangu/async_event_emitter'; -import type { - GatewayDispatchPayload, - GatewayIdentifyData, - GatewayReceivePayload, - GatewaySendPayload, +import { + GatewayCloseCodes, + GatewayDispatchEvents, + GatewayOpcodes, + type GatewayDispatchPayload, + type GatewayIdentifyData, + type GatewayReceivePayload, + type GatewaySendPayload, } from 'discord-api-types/v10'; -import { GatewayCloseCodes, GatewayDispatchEvents, GatewayOpcodes } from 'discord-api-types/v10'; -import type { RawData } from 'ws'; -import { WebSocket } from 'ws'; +import { WebSocket, type RawData } from 'ws'; import type { Inflate } from 'zlib-sync'; import type { IContextFetchingStrategy } from '../strategies/context/IContextFetchingStrategy'; import { ImportantGatewayOpcodes } from '../utils/constants.js'; diff --git a/yarn.lock b/yarn.lock index 852031df5abdc..2e561dc451a68 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1682,7 +1682,6 @@ __metadata: "@typescript-eslint/parser": ^5.36.1 "@vitest/coverage-c8": ^0.22.1 eslint: ^8.23.0 - eslint-config-marine: ^9.4.1 eslint-config-neon: ^0.1.13 eslint-config-prettier: ^8.5.0 eslint-import-resolver-typescript: ^3.5.0 @@ -1706,7 +1705,6 @@ __metadata: "@typescript-eslint/eslint-plugin": ^5.36.1 "@typescript-eslint/parser": ^5.36.1 eslint: ^8.23.0 - eslint-config-marine: ^9.4.1 eslint-config-neon: ^0.1.13 eslint-config-prettier: ^8.5.0 eslint-import-resolver-typescript: ^3.5.0 @@ -1734,7 +1732,6 @@ __metadata: discord-api-types: ^0.37.5 downlevel-dts: ^0.10.1 eslint: ^8.23.0 - eslint-config-marine: ^9.4.1 eslint-config-neon: ^0.1.13 eslint-config-prettier: ^8.5.0 eslint-import-resolver-typescript: ^3.5.0 @@ -1764,7 +1761,6 @@ __metadata: "@vitest/coverage-c8": ^0.22.1 downlevel-dts: ^0.10.1 eslint: ^8.23.0 - eslint-config-marine: ^9.4.1 eslint-config-neon: ^0.1.13 eslint-config-prettier: ^8.5.0 eslint-import-resolver-typescript: ^3.5.0 @@ -1808,7 +1804,6 @@ __metadata: "@typescript-eslint/parser": ^5.36.1 commander: ^9.4.0 eslint: ^8.23.0 - eslint-config-marine: ^9.4.1 eslint-config-prettier: ^8.5.0 eslint-import-resolver-typescript: ^3.5.0 eslint-plugin-import: ^2.26.0 @@ -1834,7 +1829,6 @@ __metadata: "@typescript-eslint/eslint-plugin": ^5.36.1 "@typescript-eslint/parser": ^5.36.1 eslint: ^8.23.0 - eslint-config-marine: ^9.4.1 eslint-config-neon: ^0.1.13 eslint-config-prettier: ^8.5.0 eslint-import-resolver-typescript: ^3.5.0 @@ -1862,7 +1856,6 @@ __metadata: "@vitest/coverage-c8": ^0.22.1 downlevel-dts: ^0.10.1 eslint: ^8.23.0 - eslint-config-marine: ^9.4.1 eslint-config-neon: ^0.1.13 eslint-config-prettier: ^8.5.0 eslint-import-resolver-typescript: ^3.5.0 @@ -1895,7 +1888,6 @@ __metadata: discord-api-types: ^0.37.5 downlevel-dts: ^0.10.1 eslint: ^8.23.0 - eslint-config-marine: ^9.4.1 eslint-config-neon: ^0.1.13 eslint-config-prettier: ^8.5.0 eslint-import-resolver-typescript: ^3.5.0 @@ -1925,7 +1917,6 @@ __metadata: "@vitest/coverage-c8": ^0.22.1 commander: ^9.4.0 eslint: ^8.23.0 - eslint-config-marine: ^9.4.1 eslint-config-neon: ^0.1.13 eslint-config-prettier: ^8.5.0 eslint-import-resolver-typescript: ^3.5.0 @@ -1957,7 +1948,6 @@ __metadata: discord-api-types: ^0.37.5 downlevel-dts: ^0.10.1 eslint: ^8.23.0 - eslint-config-marine: ^9.4.1 eslint-config-neon: ^0.1.13 eslint-config-prettier: ^8.5.0 eslint-import-resolver-typescript: ^3.5.0 @@ -2007,7 +1997,6 @@ __metadata: "@vscode/codicons": ^0.0.32 concurrently: ^7.3.0 eslint: ^8.23.0 - eslint-config-marine: ^9.4.1 eslint-config-neon: latest eslint-config-prettier: ^8.5.0 eslint-import-resolver-typescript: ^3.5.0 @@ -2056,7 +2045,6 @@ __metadata: discord-api-types: ^0.37.5 downlevel-dts: ^0.10.1 eslint: ^8.23.0 - eslint-config-marine: ^9.4.1 eslint-config-neon: ^0.1.13 eslint-config-prettier: ^8.5.0 eslint-import-resolver-typescript: ^3.5.0 @@ -8022,22 +8010,6 @@ __metadata: languageName: node linkType: hard -"eslint-config-aqua@npm:^9.2.0": - version: 9.2.1 - resolution: "eslint-config-aqua@npm:9.2.1" - checksum: f91424cdcc227d29dd299c69bb030dcaa8fb7c03feced29297de24cf04b382d5cf81f0822ac2050321ca6ddbb0345f8f34534315821ecf315e76935ce888238a - languageName: node - linkType: hard - -"eslint-config-marine@npm:^9.4.1": - version: 9.4.1 - resolution: "eslint-config-marine@npm:9.4.1" - dependencies: - eslint-config-aqua: ^9.2.0 - checksum: 380969b39b9a5c43fcb8cfc283cee83ef046084e854c59e53dfc6eb08578e92914be12b992eb3cd6231610c008657ac4c03ecd96f8983efaa146c41f0f07cc09 - languageName: node - linkType: hard - "eslint-config-neon@npm:^0.1.13": version: 0.1.13 resolution: "eslint-config-neon@npm:0.1.13"