mirror of
https://github.com/CompeyDev/create-guilded-bot.git
synced 2024-12-12 04:40:36 +00:00
chore: lint & prettier
This commit is contained in:
parent
242dcd727b
commit
1c4a3d8263
3 changed files with 122 additions and 102 deletions
201
packages/framework/typescript/.gitignore
vendored
201
packages/framework/typescript/.gitignore
vendored
|
@ -1,102 +1,99 @@
|
||||||
# Dependency directory
|
# Dependency directory
|
||||||
node_modules
|
node_modules
|
||||||
|
|
||||||
# Rest pulled from https://github.com/github/gitignore/blob/master/Node.gitignore
|
# Rest pulled from https://github.com/github/gitignore/blob/master/Node.gitignore
|
||||||
# Logs
|
# Logs
|
||||||
logs
|
logs
|
||||||
*.log
|
*.log
|
||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
yarn-debug.log*
|
yarn-debug.log*
|
||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
lerna-debug.log*
|
lerna-debug.log*
|
||||||
|
|
||||||
# Diagnostic reports (https://nodejs.org/api/report.html)
|
# Diagnostic reports (https://nodejs.org/api/report.html)
|
||||||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
||||||
|
|
||||||
# Runtime data
|
# Runtime data
|
||||||
pids
|
pids
|
||||||
*.pid
|
*.pid
|
||||||
*.seed
|
*.seed
|
||||||
*.pid.lock
|
*.pid.lock
|
||||||
|
|
||||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||||
lib-cov
|
lib-cov
|
||||||
|
|
||||||
# Coverage directory used by tools like istanbul
|
# Coverage directory used by tools like istanbul
|
||||||
coverage
|
coverage
|
||||||
*.lcov
|
*.lcov
|
||||||
|
|
||||||
# nyc test coverage
|
# nyc test coverage
|
||||||
.nyc_output
|
.nyc_output
|
||||||
|
|
||||||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
||||||
.grunt
|
.grunt
|
||||||
|
|
||||||
# Bower dependency directory (https://bower.io/)
|
# Bower dependency directory (https://bower.io/)
|
||||||
bower_components
|
bower_components
|
||||||
|
|
||||||
# node-waf configuration
|
# node-waf configuration
|
||||||
.lock-wscript
|
.lock-wscript
|
||||||
|
|
||||||
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
||||||
build/Release
|
build/Release
|
||||||
|
|
||||||
# Dependency directories
|
# Dependency directories
|
||||||
jspm_packages/
|
jspm_packages/
|
||||||
|
|
||||||
# TypeScript v1 declaration files
|
# TypeScript cache
|
||||||
typings/
|
*.tsbuildinfo
|
||||||
|
|
||||||
# TypeScript cache
|
# Optional npm cache directory
|
||||||
*.tsbuildinfo
|
.npm
|
||||||
|
|
||||||
# Optional npm cache directory
|
# Optional eslint cache
|
||||||
.npm
|
.eslintcache
|
||||||
|
|
||||||
# Optional eslint cache
|
# Optional REPL history
|
||||||
.eslintcache
|
.node_repl_history
|
||||||
|
|
||||||
# Optional REPL history
|
# Output of 'npm pack'
|
||||||
.node_repl_history
|
*.tgz
|
||||||
|
|
||||||
# Output of 'npm pack'
|
# Yarn Integrity file
|
||||||
*.tgz
|
.yarn-integrity
|
||||||
|
|
||||||
# Yarn Integrity file
|
# dotenv environment variables file
|
||||||
.yarn-integrity
|
.env
|
||||||
|
.env.test
|
||||||
# dotenv environment variables file
|
|
||||||
.env
|
# parcel-bundler cache (https://parceljs.org/)
|
||||||
.env.test
|
.cache
|
||||||
|
|
||||||
# parcel-bundler cache (https://parceljs.org/)
|
# next.js build output
|
||||||
.cache
|
.next
|
||||||
|
|
||||||
# next.js build output
|
# nuxt.js build output
|
||||||
.next
|
.nuxt
|
||||||
|
|
||||||
# nuxt.js build output
|
# vuepress build output
|
||||||
.nuxt
|
.vuepress/dist
|
||||||
|
|
||||||
# vuepress build output
|
# Serverless directories
|
||||||
.vuepress/dist
|
.serverless/
|
||||||
|
|
||||||
# Serverless directories
|
# FuseBox cache
|
||||||
.serverless/
|
.fusebox/
|
||||||
|
|
||||||
# FuseBox cache
|
# DynamoDB Local files
|
||||||
.fusebox/
|
.dynamodb/
|
||||||
|
|
||||||
# DynamoDB Local files
|
# OS metadata
|
||||||
.dynamodb/
|
.DS_Store
|
||||||
|
Thumbs.db
|
||||||
# OS metadata
|
|
||||||
.DS_Store
|
# Ignore built ts files
|
||||||
Thumbs.db
|
__tests__/runner/*
|
||||||
|
|
||||||
# Ignore built ts files
|
# TypeScript build output
|
||||||
__tests__/runner/*
|
dist
|
||||||
|
dist/*
|
||||||
# TypeScript build output
|
|
||||||
dist
|
|
||||||
dist/*
|
|
||||||
|
|
19
packages/framework/typescript/src/typings/command.ts
Normal file
19
packages/framework/typescript/src/typings/command.ts
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
import { Embed, Member, Message, User } from "guilded.js";
|
||||||
|
import { ExtendedClient } from "../structures/Client";
|
||||||
|
|
||||||
|
export type ResCtx = {
|
||||||
|
meta: {
|
||||||
|
user: Member;
|
||||||
|
raw: Message;
|
||||||
|
};
|
||||||
|
ctx: {
|
||||||
|
getOptions: () => null | string[];
|
||||||
|
reply: (content: string | Embed) => void;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
export type CommandType = {
|
||||||
|
name: string;
|
||||||
|
description: string;
|
||||||
|
run: (context: { interaction: ResCtx }) => {};
|
||||||
|
};
|
4
packages/framework/typescript/src/typings/events.ts
Normal file
4
packages/framework/typescript/src/typings/events.ts
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
import { ClientEvents } from "guilded.js";
|
||||||
|
export type extendedEvents = ClientEvents & {
|
||||||
|
interactionCreate: (...args) => unknown;
|
||||||
|
};
|
Loading…
Reference in a new issue