chore: lint & prettier

This commit is contained in:
Erica Marigold 2022-11-27 20:21:25 +05:30
parent 242dcd727b
commit 1c4a3d8263
No known key found for this signature in database
GPG key ID: 23CD97ABBBCC5ED2
3 changed files with 122 additions and 102 deletions

View file

@ -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/*

View 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 }) => {};
};

View file

@ -0,0 +1,4 @@
import { ClientEvents } from "guilded.js";
export type extendedEvents = ClientEvents & {
interactionCreate: (...args) => unknown;
};