mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
chore: Run format script (#9531)
* chore: run Prettier * ci: ensure this is checked * chore: requested changes * style: more changes
This commit is contained in:
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@@ -2,7 +2,7 @@ name: Tests
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
lint:
|
||||
name: ESLint
|
||||
name: Lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
@@ -17,7 +17,7 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Run ESLint
|
||||
- name: Run Prettier and ESLint
|
||||
run: npm run lint
|
||||
|
||||
typings:
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
"scripts": {
|
||||
"test": "npm run lint && npm run docs:test && npm run lint:typings && npm run test:typescript",
|
||||
"test:typescript": "tsc --noEmit && tsd",
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint src --fix",
|
||||
"lint": "prettier --check src/**/*.js typings/**/*.ts && eslint src",
|
||||
"lint:fix": "npm run format && eslint src --fix",
|
||||
"lint:typings": "tslint typings/index.d.ts",
|
||||
"format": "prettier --write src/**/*.js typings/**/*.ts",
|
||||
"prepare": "is-ci || husky install",
|
||||
|
||||
11
typings/rawDataTypes.d.ts
vendored
11
typings/rawDataTypes.d.ts
vendored
@@ -74,9 +74,7 @@ import {
|
||||
RESTPostAPIWebhookWithTokenJSONBody,
|
||||
Snowflake,
|
||||
APIGuildScheduledEvent,
|
||||
APIActionRowComponent,
|
||||
APITextInputComponent,
|
||||
APIModalActionRowComponent,
|
||||
APIModalSubmitInteraction,
|
||||
Permissions,
|
||||
GuildDefaultMessageNotifications,
|
||||
@@ -88,17 +86,15 @@ import {
|
||||
GuildHubType,
|
||||
GuildVerificationLevel,
|
||||
GuildFeature,
|
||||
LocalizationMap
|
||||
LocalizationMap,
|
||||
} from 'discord-api-types/v9';
|
||||
import { GuildChannel, Guild, PermissionOverwrites, InteractionType } from '.';
|
||||
import { GuildChannel, Guild, PermissionOverwrites } from '.';
|
||||
import type {
|
||||
AutoModerationActionTypes,
|
||||
AutoModerationRuleEventTypes,
|
||||
AutoModerationRuleKeywordPresetTypes,
|
||||
AutoModerationRuleTriggerTypes,
|
||||
InteractionTypes,
|
||||
MessageComponentTypes,
|
||||
ApplicationRoleConnectionMetadataTypes
|
||||
ApplicationRoleConnectionMetadataTypes,
|
||||
} from './enums';
|
||||
|
||||
export type RawActivityData = GatewayActivity;
|
||||
@@ -294,7 +290,6 @@ export interface APIAutoModerationRuleTriggerMetadata {
|
||||
mention_raid_protection_enabled?: boolean;
|
||||
}
|
||||
|
||||
|
||||
export interface APIGuild extends APIPartialGuild {
|
||||
icon_hash?: string | null;
|
||||
discovery_splash: string | null;
|
||||
|
||||
Reference in New Issue
Block a user