Add ESLint (#941)
* Add eslint, switch to lint-staged for precommit

* Fix all ESLint errors

* Update GH workflow to check prettier and eslint
1 parent 0c815fd commit 084dc0be08555891cad4c2bb984822a62ec5ec9f
@Madeline Madeline authored on 20 Jan 2023
GitHub committed on 20 Jan 2023
Showing 158 changed files
View
.eslintignore 0 → 100644
Too large (Show diff)
View
.eslintrc 0 → 100644
Too large (Show diff)
View
.github/workflows/build.yml
Too large (Show diff)
View
.husky/pre-commit
Too large (Show diff)
View
.lintstagedrc 0 → 100644
Too large (Show diff)
View
package-lock.json
Too large (Show diff)
View
package.json
Too large (Show diff)
View
scripts/util/getRouteDescriptions.js
Too large (Show diff)
View
src/api/Server.ts
Too large (Show diff)
View
src/api/middlewares/Authentication.ts
Too large (Show diff)
View
src/api/middlewares/RateLimit.ts
Too large (Show diff)
View
src/api/routes/applications/#id/bot/index.ts
Too large (Show diff)
View
src/api/routes/applications/#id/index.ts
Too large (Show diff)
View
src/api/routes/applications/#id/skus.ts
Too large (Show diff)
View
src/api/routes/applications/index.ts
Too large (Show diff)
View
src/api/routes/auth/generate-registration-tokens.ts
Too large (Show diff)
View
src/api/routes/auth/login.ts
Too large (Show diff)
View
src/api/routes/auth/mfa/totp.ts
Too large (Show diff)
View
src/api/routes/auth/register.ts
Too large (Show diff)
View
src/api/routes/channels/#channel_id/followers.ts
Too large (Show diff)
View
src/api/routes/channels/#channel_id/index.ts
Too large (Show diff)
View
src/api/routes/channels/#channel_id/invites.ts
Too large (Show diff)
View
src/api/routes/channels/#channel_id/messages/#message_id/index.ts
Too large (Show diff)
View
src/api/routes/channels/#channel_id/messages/#message_id/reactions.ts
Too large (Show diff)
View
src/api/routes/channels/#channel_id/messages/bulk-delete.ts
Too large (Show diff)
View
src/api/routes/channels/#channel_id/messages/index.ts
Too large (Show diff)
View
src/api/routes/channels/#channel_id/permissions.ts
Too large (Show diff)
View
src/api/routes/channels/#channel_id/pins.ts
Too large (Show diff)
View
src/api/routes/channels/#channel_id/purge.ts
Too large (Show diff)
View
src/api/routes/channels/#channel_id/recipients.ts
Too large (Show diff)
View
src/api/routes/channels/#channel_id/webhooks.ts
Too large (Show diff)
View
src/api/routes/discoverable-guilds.ts
Too large (Show diff)
View
src/api/routes/discovery.ts
Too large (Show diff)
View
src/api/routes/download.ts 0 → 100644
Too large (Show diff)
View
src/api/routes/download/index.ts 100644 → 0
Too large (Show diff)
View
src/api/routes/gifs/search.ts
Too large (Show diff)
View
src/api/routes/gifs/trending-gifs.ts
Too large (Show diff)
View
src/api/routes/gifs/trending.ts
Too large (Show diff)
View
src/api/routes/guild-recommendations.ts
Too large (Show diff)
View
src/api/routes/guilds/#guild_id/bans.ts
Too large (Show diff)
View
src/api/routes/guilds/#guild_id/channels.ts
Too large (Show diff)
View
src/api/routes/guilds/#guild_id/delete.ts
Too large (Show diff)
View
src/api/routes/guilds/#guild_id/discovery-requirements.ts
Too large (Show diff)
View
src/api/routes/guilds/#guild_id/index.ts
Too large (Show diff)
View
src/api/routes/guilds/#guild_id/invites.ts
Too large (Show diff)
View
src/api/routes/guilds/#guild_id/members/#member_id/index.ts
Too large (Show diff)
View
src/api/routes/guilds/#guild_id/members/#member_id/nick.ts
Too large (Show diff)
View
src/api/routes/guilds/#guild_id/members/#member_id/roles/#role_id/index.ts
Too large (Show diff)
View
src/api/routes/guilds/#guild_id/members/index.ts
Too large (Show diff)
View
src/api/routes/guilds/#guild_id/messages/search.ts
Too large (Show diff)
View
src/api/routes/guilds/#guild_id/profile/index.ts
Too large (Show diff)
View
src/api/routes/guilds/#guild_id/prune.ts
Too large (Show diff)
View
src/api/routes/guilds/#guild_id/regions.ts
Too large (Show diff)
View
src/api/routes/guilds/#guild_id/roles/#role_id/index.ts
Too large (Show diff)
View
src/api/routes/guilds/#guild_id/roles/index.ts
Too large (Show diff)
View
src/api/routes/guilds/#guild_id/templates.ts
Too large (Show diff)
View
src/api/routes/guilds/#guild_id/voice-states/#user_id/index.ts
Too large (Show diff)
View
src/api/routes/guilds/#guild_id/widget.json.ts
Too large (Show diff)
View
src/api/routes/guilds/#guild_id/widget.png.ts
Too large (Show diff)
View
src/api/routes/guilds/index.ts
Too large (Show diff)
View
src/api/routes/guilds/templates/index.ts
Too large (Show diff)
View
src/api/routes/oauth2/authorize.ts
Too large (Show diff)
View
src/api/routes/partners/#guild_id/requirements.ts
Too large (Show diff)
View
src/api/routes/policies/instance/domains.ts
Too large (Show diff)
View
src/api/routes/store/published-listings/applications.ts
Too large (Show diff)
View
src/api/routes/store/published-listings/skus.ts
Too large (Show diff)
View
src/api/routes/updates.ts
Too large (Show diff)
View
src/api/routes/users/#id/delete.ts
Too large (Show diff)
View
src/api/routes/users/#id/profile.ts
Too large (Show diff)
View
src/api/routes/users/#id/relationships.ts
Too large (Show diff)
View
src/api/routes/users/@me/delete.ts
Too large (Show diff)
View
src/api/routes/users/@me/guilds/#guild_id/settings.ts
Too large (Show diff)
View
src/api/routes/users/@me/index.ts
Too large (Show diff)
View
src/api/routes/users/@me/mfa/codes-verification.ts
Too large (Show diff)
View
src/api/routes/users/@me/mfa/codes.ts
Too large (Show diff)
View
src/api/routes/users/@me/mfa/totp/disable.ts
Too large (Show diff)
View
src/api/routes/users/@me/mfa/totp/enable.ts
Too large (Show diff)
View
src/api/routes/users/@me/relationships.ts
Too large (Show diff)
View
src/api/routes/users/@me/settings.ts
Too large (Show diff)
View
src/api/start.ts
Too large (Show diff)
View
src/api/util/handlers/Instance.ts
Too large (Show diff)
View
src/api/util/handlers/Message.ts
Too large (Show diff)
View
src/api/util/handlers/Voice.ts
Too large (Show diff)
View
src/api/util/handlers/route.ts
Too large (Show diff)
View
src/api/util/utility/EmbedHandlers.ts
Too large (Show diff)
View
src/api/util/utility/RandomInviteID.ts
Too large (Show diff)
View
src/api/util/utility/captcha.ts
Too large (Show diff)
View
src/api/util/utility/ipAddress.ts
Too large (Show diff)
View
src/api/util/utility/passwordStrength.ts
Too large (Show diff)
View
src/bundle/Server.ts
Too large (Show diff)
View
src/bundle/start.ts
Too large (Show diff)
View
src/cdn/Server.ts
Too large (Show diff)
View
src/cdn/routes/attachments.ts
Too large (Show diff)
View
src/cdn/routes/avatars.ts
Too large (Show diff)
View
src/cdn/routes/guild-profiles.ts
Too large (Show diff)
View
src/cdn/routes/role-icons.ts
Too large (Show diff)
View
src/cdn/util/FileStorage.ts
Too large (Show diff)
View
src/cdn/util/Storage.ts
Too large (Show diff)
View
src/gateway/Server.ts
Too large (Show diff)
View
src/gateway/events/Close.ts
Too large (Show diff)
View
src/gateway/events/Connection.ts
Too large (Show diff)
View
src/gateway/events/Message.ts
Too large (Show diff)
View
src/gateway/listener/listener.ts
Too large (Show diff)
View
src/gateway/opcodes/Heartbeat.ts
Too large (Show diff)
View
src/gateway/opcodes/Identify.ts
Too large (Show diff)
View
src/gateway/opcodes/LazyRequest.ts
Too large (Show diff)
View
src/gateway/opcodes/RequestGuildMembers.ts
Too large (Show diff)
View
src/gateway/opcodes/Resume.ts
Too large (Show diff)
View
src/gateway/opcodes/VoiceStateUpdate.ts
Too large (Show diff)
View
src/gateway/opcodes/index.ts
Too large (Show diff)
View
src/gateway/opcodes/instanceOf.ts
Too large (Show diff)
View
src/gateway/start.ts
Too large (Show diff)
View
src/gateway/util/Constants.ts
Too large (Show diff)
View
src/gateway/util/Send.ts
Too large (Show diff)
View
src/gateway/util/WebSocket.ts
Too large (Show diff)
View
src/util/config/types/GifConfiguration.ts
Too large (Show diff)
View
src/util/dtos/DmChannelDTO.ts
Too large (Show diff)
View
src/util/dtos/ReadyGuildDTO.ts
Too large (Show diff)
View
src/util/entities/Application.ts
Too large (Show diff)
View
src/util/entities/AuditLog.ts
Too large (Show diff)
View
src/util/entities/BackupCodes.ts
Too large (Show diff)
View
src/util/entities/BaseClass.ts
Too large (Show diff)
View
src/util/entities/Channel.ts
Too large (Show diff)
View
src/util/entities/ConnectedAccount.ts
Too large (Show diff)
View
src/util/entities/Emoji.ts
Too large (Show diff)
View
src/util/entities/Encryption.ts
Too large (Show diff)
View
src/util/entities/Guild.ts
Too large (Show diff)
View
src/util/entities/Member.ts
Too large (Show diff)
View
src/util/entities/ReadState.ts
Too large (Show diff)
View
src/util/entities/StickerPack.ts
Too large (Show diff)
View
src/util/entities/Team.ts
Too large (Show diff)
View
src/util/entities/User.ts
Too large (Show diff)
View
src/util/imports/OrmUtils.ts
Too large (Show diff)
View
src/util/interfaces/Event.ts
Too large (Show diff)
View
src/util/interfaces/Interaction.ts
Too large (Show diff)
View
src/util/schemas/ChannelPermissionOverwriteSchema.ts
Too large (Show diff)
View
src/util/schemas/IdentifySchema.ts
Too large (Show diff)
View
src/util/schemas/LazyRequestSchema.ts
Too large (Show diff)
View
src/util/schemas/MessageCreateSchema.ts
Too large (Show diff)
View
src/util/schemas/UserSettingsSchema.ts
Too large (Show diff)
View
src/util/schemas/Validator.ts
Too large (Show diff)
View
src/util/util/Array.ts
Too large (Show diff)
View
src/util/util/AutoUpdate.ts
Too large (Show diff)
View
src/util/util/BitField.ts
Too large (Show diff)
View
src/util/util/Config.ts
Too large (Show diff)
View
src/util/util/Constants.ts
Too large (Show diff)
View
src/util/util/Database.ts
Too large (Show diff)
View
src/util/util/Email.ts
Too large (Show diff)
View
src/util/util/Event.ts
Too large (Show diff)
View
src/util/util/FieldError.ts
Too large (Show diff)
View
src/util/util/Permissions.ts
Too large (Show diff)
View
src/util/util/Rights.ts
Too large (Show diff)
View
src/util/util/Sentry.ts
Too large (Show diff)
View
src/util/util/Snowflake.ts
Too large (Show diff)
View
src/util/util/String.ts
Too large (Show diff)
View
src/util/util/Token.ts
Too large (Show diff)
View
src/util/util/TraverseDirectory.ts
Too large (Show diff)
View
src/util/util/cdn.ts
Too large (Show diff)