Skip to content

Commit

Permalink
chore: fix import orders
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed Aug 10, 2024
1 parent 7153afd commit 3c0fe83
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 20 deletions.
4 changes: 1 addition & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
"project": "./tsconfig.base.json"
},
"rules": {
"n/no-sync": "off",
"n/shebang": "off",

"import/order": "off",
"@typescript-eslint/consistent-type-definitions": "off"
}
}
5 changes: 0 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
},
"files.associations": {
"concourse/check": "shellscript",
"concourse/in": "shellscript",
Expand Down
10 changes: 5 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { exit } from 'node:process';
import { inspect, parseArgs } from 'node:util';
import { REST } from '@discordjs/rest';
import { MessageFlags, Routes, type RESTPostAPIWebhookWithTokenJSONBody } from 'discord-api-types/v10';
import { ProxyAgent } from 'undici';
import { container } from '#lib/utils/container';
import { obfuscateWebhookUrl, UnboundWebhookRegex } from '#lib/utils/obfuscateWebhookUrl';
import { preflightChecks } from '#lib/utils/preflightChecks';
import { setupLogger } from '#lib/utils/setup-logger';
import { REST } from '@discordjs/rest';
import { MessageFlags, Routes, type RESTPostAPIWebhookWithTokenJSONBody } from 'discord-api-types/v10';
import { exit } from 'node:process';
import { inspect, parseArgs } from 'node:util';
import { ProxyAgent } from 'undici';

export type OptionsType = typeof values;

Expand Down
4 changes: 2 additions & 2 deletions src/lib/utils/preflightChecks.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { exit } from 'node:process';
import type { OptionsType } from '#root/index';
import { container } from '#lib/utils/container';
import type { OptionsType } from '#root/index';
import { exit } from 'node:process';

export interface CheckedOptionsType {
'allow-insecure': boolean;
Expand Down
4 changes: 2 additions & 2 deletions src/lib/utils/setup-logger.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Logger } from '@skyra/logger';
import type { OptionsType } from '#root/index';
import { container } from '#lib/utils/container';
import { obfuscateWebhookUrl } from '#lib/utils/obfuscateWebhookUrl';
import type { OptionsType } from '#root/index';
import { Logger } from '@skyra/logger';

function stringify(object: unknown): string {
return JSON.stringify(object, null, 4);
Expand Down
6 changes: 3 additions & 3 deletions src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"extends": ["../tsconfig.base.json"],
"compilerOptions": {
"extends": ["../tsconfig.base.json"],
"compilerOptions": {
"rootDir": ".",
"paths": {
"#lib/*": ["./lib/*"],
"#root/*": ["./*"]
}
},
"include": ["."]
"include": ["."]
}

0 comments on commit 3c0fe83

Please sign in to comment.