-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
174 changed files
with
4,948 additions
and
2,861 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
yarn format | ||
yarn format:check |
24 changes: 24 additions & 0 deletions
24
.yarn/patches/@tanzanite-discord.js-npm-21.0.0-dev.1732992097-ff61f25bf-1347ec7fb9.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
diff --git a/typings/index.d.mts b/typings/index.d.mts | ||
index ad0b67870da010ffeb333ef06a67465b26e597b9..a1dee9410baf284b00c5c9b46e81e59478fafb36 100644 | ||
--- a/typings/index.d.mts | ||
+++ b/typings/index.d.mts | ||
@@ -12612,7 +12612,6 @@ export class User extends Base { | ||
* The tag of this user | ||
* <info>This user's username, or their legacy tag (e.g. `hydrabolt#0001`) | ||
* if they're using the legacy username system</info> | ||
- * @deprecated Use {@link User.username} instead. | ||
*/ | ||
public get tag(): string; | ||
|
||
diff --git a/typings/index.d.ts b/typings/index.d.ts | ||
index e0e47f7eb14045140ea8ea2dd1c4e40482668294..672de5f8b8b7f3a6babf7f96b94fbdab710c5ac0 100644 | ||
--- a/typings/index.d.ts | ||
+++ b/typings/index.d.ts | ||
@@ -12612,7 +12612,6 @@ export class User extends Base { | ||
* The tag of this user | ||
* <info>This user's username, or their legacy tag (e.g. `hydrabolt#0001`) | ||
* if they're using the legacy username system</info> | ||
- * @deprecated Use {@link User.username} instead. | ||
*/ | ||
public get tag(): string; | ||
|
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
//@ts-check | ||
import eslint from '@eslint/js'; | ||
import eslintConfigPrettier from 'eslint-config-prettier'; | ||
//@ts-expect-error: no types | ||
import importPlugin from 'eslint-plugin-import'; | ||
import tseslint from 'typescript-eslint'; | ||
|
||
export default tseslint.config( | ||
eslint.configs.recommended, | ||
tseslint.configs.recommendedTypeChecked, | ||
// tseslint.configs.strictTypeChecked, | ||
importPlugin.flatConfigs.recommended, | ||
importPlugin.flatConfigs.typescript, | ||
eslintConfigPrettier, | ||
{ | ||
ignores: ['dist', '.yarn', 'node_modules', '*.nnb', 'tooltips*'], | ||
|
||
languageOptions: { | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
project: './tsconfig.eslint.json' | ||
} | ||
}, | ||
|
||
rules: { | ||
'no-return-await': 'off', | ||
'@typescript-eslint/no-empty-interface': 'off', | ||
'no-mixed-spaces-and-tabs': 'off', | ||
'no-duplicate-imports': 'warn', | ||
'no-empty-function': 'off', | ||
'@typescript-eslint/no-empty-function': 'off', | ||
'no-empty': 'off', | ||
'@typescript-eslint/ban-ts-comment': [ | ||
'error', | ||
{ | ||
'ts-expect-error': 'allow-with-description', | ||
'ts-ignore': 'allow-with-description', | ||
'ts-nocheck': 'allow-with-description', | ||
'ts-check': false, | ||
'minimumDescriptionLength': 5 | ||
} | ||
], | ||
'@typescript-eslint/no-floating-promises': 'warn', | ||
'prefer-promise-reject-errors': 'warn', | ||
'@typescript-eslint/no-misused-promises': 'error', | ||
'@typescript-eslint/no-base-to-string': 'error', | ||
'no-loss-of-precision': 'off', | ||
'@typescript-eslint/no-loss-of-precision': 'error', | ||
'no-throw-literal': 'off', | ||
'@typescript-eslint/only-throw-error': 'warn', | ||
'@typescript-eslint/prefer-nullish-coalescing': 'warn', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-non-null-assertion': 'off', | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
'prefer-template': 'warn', | ||
'@typescript-eslint/no-this-alias': ['error', { allowDestructuring: true, allowedNames: ['that'] }], | ||
'@typescript-eslint/no-unused-vars': [ | ||
'warn', | ||
{ | ||
argsIgnorePattern: '^_', | ||
caughtErrorsIgnorePattern: '^_', | ||
destructuredArrayIgnorePattern: '^_', | ||
varsIgnorePattern: '^_' | ||
} | ||
], | ||
'no-implied-eval': 'off', | ||
'@typescript-eslint/no-implied-eval': ['error'], | ||
'@typescript-eslint/no-deprecated': 'warn', | ||
'@typescript-eslint/explicit-member-accessibility': ['warn', { accessibility: 'explicit' }], | ||
'@typescript-eslint/switch-exhaustiveness-check': 'warn', | ||
'@typescript-eslint/no-restricted-imports': [ | ||
'error', | ||
{ paths: [{ name: 'console', importNames: ['assert'], message: 'Import from the `assert` module instead.' }] } | ||
], | ||
'@typescript-eslint/no-namespace': 'off', | ||
'no-debugger': 'warn', | ||
'@typescript-eslint/prefer-as-const': 'warn', | ||
'@typescript-eslint/ban-types': 'off', | ||
'@typescript-eslint/no-inferrable-types': 'off', | ||
'@typescript-eslint/no-unsafe-declaration-merging': 'off', | ||
'@typescript-eslint/no-unsafe-enum-comparison': 'off', | ||
'@typescript-eslint/restrict-template-expressions': 'off', | ||
'@typescript-eslint/no-unnecessary-type-assertion': 'warn', | ||
'@typescript-eslint/require-await': 'warn', | ||
'@typescript-eslint/no-unused-expressions': 'warn', | ||
'@typescript-eslint/no-empty-object-type': 'off', | ||
'@typescript-eslint/no-redundant-type-constituents': 'warn', | ||
|
||
'prefer-const': 'warn', | ||
'import/no-unresolved': 'off', // until it supports subpath imports | ||
'import/extensions': ['error', 'ignorePackages'], | ||
'import/no-cycle': 'error', | ||
|
||
'no-warning-comments': 'warn' | ||
} | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { parseDuration, type BotArgumentTypeCaster, type ParsedDuration } from '#lib'; | ||
|
||
export const contentWithDuration: BotArgumentTypeCaster<Promise<ParsedDuration>> = async (_, phrase) => { | ||
export const contentWithDuration: BotArgumentTypeCaster<ParsedDuration> = (_, phrase) => { | ||
return parseDuration(phrase); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.