Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

TypeScript Rewrite #44

Closed
wants to merge 81 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
2de99ec
feat(deps): add typescript
JKLorenzo Jun 15, 2021
fca4c0c
feat: move prettier config
JKLorenzo Jun 15, 2021
018c1cd
feat: remove sourcetype module
JKLorenzo Jun 15, 2021
54f2e00
refactor(main): js to ts
JKLorenzo Jun 15, 2021
9b14d6c
Merge branch 'master' into feat--typescript-rewrite
JKLorenzo Jun 15, 2021
6b706fe
Merge branch 'master' into feat--typescript-rewrite
JKLorenzo Jun 15, 2021
b86fa52
chore: add dist/ to gitignore
JKLorenzo Jun 15, 2021
d236a6a
feat: add typescript config
JKLorenzo Jun 15, 2021
48b5aac
chore: cleanup dist/ directory
JKLorenzo Jun 16, 2021
5895eaa
Merge branch 'master' into feat--typescript-rewrite
JKLorenzo Jun 16, 2021
51a55da
feat(Utils): update to TypeScript
JKLorenzo Jun 17, 2021
f0b3dc7
types: add declaration for g-i-s module
JKLorenzo Jun 17, 2021
4224d6b
chore: update typescript config
JKLorenzo Jun 17, 2021
f3a61aa
chore: update eslint config
JKLorenzo Jun 17, 2021
7b7f966
chore: update lintstaged config
JKLorenzo Jun 17, 2021
95a5419
chore: update package scripts + add types
JKLorenzo Jun 17, 2021
4a61a2d
chore: cleanup types\ directory
JKLorenzo Jun 17, 2021
ef4a4cf
feat(Structures): add Interfaces
JKLorenzo Jun 17, 2021
0689c64
feat(ExtendedMessage): update to TypeScript
JKLorenzo Jun 17, 2021
3aabefd
feat(MessageComponent): update to TypeScript + rename to Component
JKLorenzo Jun 17, 2021
f0a5dd7
feat(ChannelManager): update to TypeScript
JKLorenzo Jun 17, 2021
a15166a
feat(ErrorManager): update to TypeScript
JKLorenzo Jun 17, 2021
7117352
feat(Interfaces): add ErrorTicket interface
JKLorenzo Jun 17, 2021
20daf8e
feat(ErrorTicketManager): use ErrorTicket interface
JKLorenzo Jun 17, 2021
0aa3946
chore: update eslint config
JKLorenzo Jun 17, 2021
003333c
feat(MessageManager): update to TypeScript
JKLorenzo Jun 17, 2021
04ae69d
feat(ReactionManager): update to TypeScript
JKLorenzo Jun 17, 2021
40dc10e
chore(Structures): cleanup Base.js
JKLorenzo Jun 17, 2021
631d50b
refactor(ErrorManager): rename Client to QGClient
JKLorenzo Jun 17, 2021
8bc13eb
refactor(MessageManager): rename Client to QGClient
JKLorenzo Jun 17, 2021
1d13331
feat(SpeechManager): update to TypeScript
JKLorenzo Jun 19, 2021
6dd01bd
types: add declaration for node-google-tts-api module
JKLorenzo Jun 19, 2021
5582287
refactor: import discord Client instead of QGClient
JKLorenzo Jun 19, 2021
0751e58
types: add declarations for discordjs to support extended structures
JKLorenzo Jun 19, 2021
773fff2
feat(Client): initial update to TypeScript
JKLorenzo Jun 19, 2021
05cdf06
feat(Main): utilize the new Client structure
JKLorenzo Jun 19, 2021
a119998
feat(Interfaces): update bigint types to stringified bigint
JKLorenzo Jun 19, 2021
10895d0
feat(Interfaces): update existing Partials and add Game partials
JKLorenzo Jun 20, 2021
364b206
feat(Structures): add Member structure
JKLorenzo Jun 20, 2021
8acc0e5
types(DiscordJs): add GuildMember interface
JKLorenzo Jun 20, 2021
1df64ef
feat(RoleManager): update to TypeScript
JKLorenzo Jun 20, 2021
0a6c6f0
feat(Member): update register param type + prefer undefined return type
JKLorenzo Jun 20, 2021
4032b48
feat(Client): update return type to undefined
JKLorenzo Jun 20, 2021
6b9a7f4
feat(DiscordJs): update register param + prefer undefined return type
JKLorenzo Jun 20, 2021
8bbe211
feat(DatabaseManager): initial update to TypeScript
JKLorenzo Jun 20, 2021
7bca90d
feat(Command): initial update to TypeScript
JKLorenzo Jun 20, 2021
8fa1aed
refactor: use SnowFlake type instead of stringified bigint literal
JKLorenzo Jun 20, 2021
023b88e
refactor(Member): rename to ExtendedMember
JKLorenzo Jun 20, 2021
10b9706
feat(Client): extend GuildMember structure
JKLorenzo Jun 20, 2021
12c2f43
Merge branch 'master' into feat--typescript-rewrite
JKLorenzo Jun 20, 2021
7c4844f
Merge branch 'master' into feat--typescript-rewrite
JKLorenzo Jun 20, 2021
1cab763
Merge branch 'master' into feat--typescript-rewrite
JKLorenzo Jun 30, 2021
68033ee
Merge branch 'master' into feat--typescript-rewrite
JKLorenzo Jul 1, 2021
e9fb075
Merge branch 'master' into feat--typescript-rewrite
JKLorenzo Jul 1, 2021
d71fe68
Merge branch 'feat--typescript-rewrite' of https://github.com/JKLoren…
JKLorenzo Jul 1, 2021
592e8fb
feat(Constants): use Snowflake type
JKLorenzo Jul 1, 2021
cea4abd
chore(Deps): update discordjs
JKLorenzo Jul 1, 2021
ebad3d8
feat(MessageManager): update message options + constant usage
JKLorenzo Jul 1, 2021
5df6d8b
feat(InteractionManager): update to TypeScript
JKLorenzo Jul 1, 2021
ce90d82
feat(Command): integrate command methods
JKLorenzo Jul 1, 2021
9d9179d
feat(Component): support select menus
JKLorenzo Jul 1, 2021
01994ca
chore(SlashCommand): cleanup js residue
JKLorenzo Jul 2, 2021
fb9107c
feat(Client): remove helpers
JKLorenzo Jul 2, 2021
b2e8737
feat(Types): remove client helpers
JKLorenzo Jul 2, 2021
d8d1a70
feat(Structures): add ExtendedGuild
JKLorenzo Jul 2, 2021
3edc390
feat(Types): add guild interface to djs
JKLorenzo Jul 2, 2021
0b6109e
feat(Client): rename to ExtendedClient + use ExtendedGuild
JKLorenzo Jul 2, 2021
7e3efd2
feat(ExtendedGuild): add role and channel helpers
JKLorenzo Jul 2, 2021
de139bd
feat(Types): add role/channel helpers to guild
JKLorenzo Jul 2, 2021
fb96f12
feat(ExtendedClient): add helpers
JKLorenzo Jul 2, 2021
3282d2e
feat(Types): add djs client helpers
JKLorenzo Jul 2, 2021
b5a29ca
feat(Main): update client import name
JKLorenzo Jul 2, 2021
7433010
feat(ExtendedGuild): add explicit class name
JKLorenzo Jul 2, 2021
73a65d9
chore: remove unreleated commitlint types
JKLorenzo Jul 4, 2021
baaa386
Merge branch 'master' into feat--typescript-rewrite
JKLorenzo Jul 11, 2021
6c9a7cd
chore(Deps): bump discordjs and discordjs/voice
JKLorenzo Jul 14, 2021
0fd1038
feat(Deps): remove discord-api-types
JKLorenzo Jul 14, 2021
1e95755
Merge branch 'feat--typescript-rewrite' of https://github.com/JKLoren…
JKLorenzo Jul 14, 2021
c5a227a
feat(ChannelManager): use GuildChannelCreateOptions param type
JKLorenzo Jul 14, 2021
efbd3d4
refactor(SpeechManager): readability
JKLorenzo Jul 14, 2021
9bed48e
refactor(Command): remove redundant
JKLorenzo Jul 14, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 1 addition & 6 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,14 @@
"always",
[
"chore",
"build",
"ci",
"docs",
"feat",
"fix",
"perf",
"refactor",
"revert",
"style",
"test",
"types",
"workflow",
"wip"
"workflow"
]
]
}
Expand Down
61 changes: 17 additions & 44 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
{
"extends": [
"eslint:recommended",
"plugin:prettier/recommended"
],
"plugins": [
"import"
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": ["import", "prettier", "@typescript-eslint"],
"env": {
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module"
"ecmaVersion": 2021
},
"rules": {
"import/order": [
Expand Down Expand Up @@ -48,10 +46,10 @@
]
}
],
"strict": [
"error",
"global"
],
"@typescript-eslint/no-redeclare": "error",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-non-null-assertion": "off",
"strict": ["error", "global"],
"no-compare-neg-zero": "error",
"no-template-curly-in-string": "error",
"no-unsafe-negation": "error",
Expand Down Expand Up @@ -80,17 +78,10 @@
],
"accessor-pairs": "warn",
"array-callback-return": "error",
"curly": [
"error",
"multi-line"
],
"dot-location": [
"error",
"property"
],
"curly": ["error", "multi-line"],
"dot-location": ["error", "property"],
"dot-notation": "error",
"eqeqeq": "error",
"no-empty-function": "error",
"no-floating-decimal": "error",
"no-implied-eval": "error",
"no-invalid-this": "error",
Expand Down Expand Up @@ -142,17 +133,11 @@
"ignoreConsecutiveComments": true
}
],
"comma-dangle": [
"error",
"always-multiline"
],
"comma-dangle": ["error", "always-multiline"],
"comma-spacing": "error",
"comma-style": "error",
"computed-property-spacing": "error",
"consistent-this": [
"error",
"$this"
],
"consistent-this": ["error", "$this"],
"eol-last": "error",
"func-names": "error",
"func-name-matching": "error",
Expand Down Expand Up @@ -204,19 +189,10 @@
"no-unneeded-ternary": "error",
"no-whitespace-before-property": "error",
"nonblock-statement-body-position": "error",
"object-curly-spacing": [
"error",
"always"
],
"object-curly-spacing": ["error", "always"],
"operator-assignment": "error",
"padded-blocks": [
"error",
"never"
],
"quote-props": [
"error",
"as-needed"
],
"padded-blocks": ["error", "never"],
"quote-props": ["error", "as-needed"],
"quotes": [
"error",
"single",
Expand All @@ -243,10 +219,7 @@
"template-tag-spacing": "error",
"unicode-bom": "error",
"arrow-body-style": "error",
"arrow-parens": [
"error",
"as-needed"
],
"arrow-parens": ["error", "as-needed"],
"arrow-spacing": "error",
"no-duplicate-imports": "error",
"no-useless-computed-key": "error",
Expand All @@ -260,4 +233,4 @@
"template-curly-spacing": "error",
"yield-star-spacing": "error"
}
}
}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ logs/
.idea/

# Autogenerated
*.mp3
*.mp3
dist/
4 changes: 2 additions & 2 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"*.{mjs,js}": "eslint --fix --ext mjs,js,ts",
"*.{ts,json,yml,yaml}": "prettier --write"
"*.{ts}": "eslint --fix --ext ts",
"*.{json,yml,yaml}": "prettier --write"
}