Skip to content
This repository has been archived by the owner on May 31, 2022. It is now read-only.

Commit

Permalink
chore(deps): add config files and components
Browse files Browse the repository at this point in the history
  • Loading branch information
jejebecarte committed Mar 23, 2022
1 parent 6cd861b commit df332ea
Show file tree
Hide file tree
Showing 9 changed files with 164 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Discord Bot Token
BOT_TOKEN=

# Channel ID
CHANNEL_ID=

# Webhook URLs
MEMBER_WEBHOOK_URL=
OFFICER_WEBHOOK_URL=

# Minecraft Account Email
MINECRAFT_EMAIL=

# Minecraft Account Password
MINECRAFT_PASSWORD=

# Minecraft Account Auth (microsoft/mojang)
MINECRAFT_AUTH_TYPE=
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
next-env.d.ts
node_modules
59 changes: 59 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:@next/next/recommended"
],
"env": {
"node": true,
"es6": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2021
},
"rules": {
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"comma-dangle": ["error", "always-multiline"],
"comma-spacing": "error",
"comma-style": "error",
"curly": ["error", "multi-line", "consistent"],
"dot-location": ["error", "property"],
"handle-callback-err": "off",
"indent": ["error", "tab"],
"max-nested-callbacks": ["error", { "max": 4 }],
"max-statements-per-line": ["error", { "max": 2 }],
"no-console": "off",
"@typescript-eslint/no-empty-function": "error",
"no-floating-decimal": "error",
"no-inline-comments": "error",
"no-lonely-if": "error",
"no-multi-spaces": "error",
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1, "maxBOF": 0 }],
"no-shadow": ["error", { "allow": ["err", "resolve", "reject"] }],
"no-trailing-spaces": ["error"],
"no-var": "error",
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"object-curly-spacing": ["error", "always"],
"prefer-const": "error",
"quotes": ["error", "single"],
"semi": ["error", "always"],
"space-before-blocks": "error",
"space-before-function-paren": [
"error",
{
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}
],
"space-in-parens": "error",
"space-infix-ops": "error",
"space-unary-ops": "error",
"spaced-comment": "error",
"yoda": "error"
}
}
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# dependencies
/node_modules
/.pnp
.pnp.js

# next.js
/.next/
/out/

# production
/dist/

# vs code
/.vscode/

# misc
.DS_Store

# debug
*npm-debug.log*
*yarn-debug.log*
*yarn-error.log*

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local
.env
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16.13.1
11 changes: 11 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"bracketSpacing": true,
"jsxBracketSameLine": true,
"singleQuote": true,
"semi": true,
"trailingComma": "all",
"arrowParens": "always",
"useTabs": true,
"tabWidth": 4,
"printWidth": 120
}
1 change: 1 addition & 0 deletions discord
Submodule discord added at 1f9440
1 change: 1 addition & 0 deletions mineflayer
Submodule mineflayer added at 8b0351
42 changes: 42 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"compilerOptions": {
"lib": ["es2020"],
"module": "commonjs",
"target": "es2019",
"noImplicitAny": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"outDir": "./dist",

"moduleResolution": "node",
"resolveJsonModule": true,
"removeComments": true,
"preserveConstEnums": true,
"strict": true,
"alwaysStrict": true,
"strictNullChecks": true,
"noUncheckedIndexedAccess": true,

"noImplicitReturns": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"allowUnreachableCode": false,
"noFallthroughCasesInSwitch": true,

"declaration": true,
"sourceMap": true,

"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"allowJs": false,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,

"jsx": "preserve",
"isolatedModules": true,
"incremental": true
},
"exclude": ["./node_modules/**/*", "**/*.spec.ts"],
"include": ["./src"]
}

0 comments on commit df332ea

Please sign in to comment.