121 lines
3.1 KiB
JSON
121 lines
3.1 KiB
JSON
{
|
|
"name": "discord-dashboard",
|
|
"version": "1.0",
|
|
"description": "dashboard",
|
|
"main": "index.js",
|
|
"typings": ".d.ts",
|
|
"dependencies": {
|
|
"assistants-safe-storage": "^1.0.0",
|
|
"body-parser": "^1.20.0",
|
|
"colors": "^1.4.0",
|
|
"cookie-parser": "^1.4.6",
|
|
"discord-oauth2": "^2.10.0",
|
|
"discord.js": "*",
|
|
"ejs": "^3.1.8",
|
|
"express": "^4.17.3",
|
|
"express-partials": "^0.3.0",
|
|
"express-rate-limit": "^6.4.0",
|
|
"express-session": "^1.17.3",
|
|
"https": "^1.0.0",
|
|
"keyv": "^4.5.2",
|
|
"node-fetch": "^2.6.7",
|
|
"quick.db": "^7.1.3",
|
|
"socket.io": "^4.5.1"
|
|
},
|
|
"scripts": {
|
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
},
|
|
"devDependencies": {
|
|
"dbd-dark-dashboard": "^1.6.58",
|
|
"eslint": "^8.23.0",
|
|
"javascript-obfuscator": "^4.0.0",
|
|
"prettier": "2.7.1"
|
|
},
|
|
"eslintConfig": {
|
|
"env": {
|
|
"commonjs": true,
|
|
"es6": true,
|
|
"es2020": true,
|
|
"node": true
|
|
},
|
|
"extends": "eslint:recommended",
|
|
"globals": {
|
|
"Atomics": "readonly",
|
|
"SharedArrayBuffer": "readonly"
|
|
},
|
|
"parserOptions": {
|
|
"ecmaVersion": 2020
|
|
},
|
|
"rules": {
|
|
"arrow-spacing": [
|
|
"warn",
|
|
{
|
|
"before": true,
|
|
"after": true
|
|
}
|
|
],
|
|
"comma-dangle": [
|
|
"error",
|
|
"always-multiline"
|
|
],
|
|
"comma-spacing": "error",
|
|
"comma-style": "error",
|
|
"dot-location": [
|
|
"error",
|
|
"property"
|
|
],
|
|
"handle-callback-err": "off",
|
|
"indent": [
|
|
"error",
|
|
"tab",
|
|
{
|
|
"SwitchCase": 1
|
|
}
|
|
],
|
|
"keyword-spacing": "error",
|
|
"max-nested-callbacks": [
|
|
"error",
|
|
{
|
|
"max": 4
|
|
}
|
|
],
|
|
"max-statements-per-line": [
|
|
"error",
|
|
{
|
|
"max": 2
|
|
}
|
|
],
|
|
"no-console": "off",
|
|
"no-multi-spaces": "error",
|
|
"no-multiple-empty-lines": [
|
|
"error",
|
|
{
|
|
"max": 2,
|
|
"maxEOF": 1,
|
|
"maxBOF": 0
|
|
}
|
|
],
|
|
"no-trailing-spaces": [
|
|
"error"
|
|
],
|
|
"no-var": "error",
|
|
"object-curly-spacing": [
|
|
"error",
|
|
"always"
|
|
],
|
|
"prefer-const": "error",
|
|
"quotes": [
|
|
"error",
|
|
"double"
|
|
],
|
|
"semi": [
|
|
"error",
|
|
"always"
|
|
],
|
|
"space-in-parens": "error",
|
|
"space-infix-ops": "error",
|
|
"space-unary-ops": "error",
|
|
"yoda": "error"
|
|
}
|
|
}
|
|
}
|