From 7ecf71f8f3524a81da7495ad3b8380232d2777ce Mon Sep 17 00:00:00 2001 From: Isaac Date: Fri, 18 Mar 2022 12:54:33 +0000 Subject: [PATCH] Update files --- .eslintrc.js | 44 ++++++++++++++++++++++++++--------------- .github/SECURITY.md | 7 ++++--- .gitignore | 12 +++++------ user/example.config.yml | 22 +++++++++++++++++++++ 4 files changed, 60 insertions(+), 25 deletions(-) create mode 100644 user/example.config.yml diff --git a/.eslintrc.js b/.eslintrc.js index 9a258ff..5dd55cb 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,12 +1,16 @@ module.exports = { 'env': { - 'commonjs': true, - 'es2021': true, - 'node': true + 'browser': false, + 'commonjs': false, + 'es6': true, + 'node': true, }, - 'extends': 'eslint:recommended', + 'extends': ['eslint:recommended'], + 'parser': '@typescript-eslint/parser', 'parserOptions': { 'ecmaVersion': 12 }, + 'root': true, 'rules': { + '@typescript-eslint/no-var-requires': ['off'], 'array-bracket-newline': [ 'error', 'consistent' @@ -37,13 +41,19 @@ module.exports = { ], 'comma-dangle': [ 'error', - 'never' + { + 'arrays': 'never', + 'exports': 'never', + 'functions': 'never', + 'imports': 'never', + 'objects': 'always-multiline', + } ], 'comma-spacing': [ 'error', { 'after': true, - 'before': false + 'before': false, } ], 'comma-style': [ @@ -96,12 +106,11 @@ module.exports = { 'ignoreStrings': true, 'ignoreTemplateLiterals': true, 'ignoreTrailingComments': true, - 'ignoreUrls': true + 'ignoreUrls': true, } ], 'max-lines': [ - 'warn', - 500 + 'warn' ], 'max-statements-per-line': [ 'error' @@ -110,7 +119,7 @@ module.exports = { 'warn' ], 'no-console': [ - 'warn' + 'off' ], 'no-return-assign': [ 'error' @@ -122,7 +131,10 @@ module.exports = { 'error' ], 'no-underscore-dangle': [ - 'error' + 'error', { + 'allowAfterThis': true, + 'allowFunctionParams': true, + } ], 'no-unneeded-ternary': [ 'error' @@ -137,7 +149,7 @@ module.exports = { 'error', { 'minProperties': 2, - 'multiline': true + 'multiline': true, } ], 'object-curly-spacing': [ @@ -157,7 +169,7 @@ module.exports = { 'error', { 'destructuring': 'all', - 'ignoreReadBeforeAssign': false + 'ignoreReadBeforeAssign': false, } ], 'quotes': [ @@ -184,6 +196,6 @@ module.exports = { 'spaced-comment': [ 'error', 'always' - ] - } -}; \ No newline at end of file + ], + }, +}; diff --git a/.github/SECURITY.md b/.github/SECURITY.md index 1cd7051..94a7691 100644 --- a/.github/SECURITY.md +++ b/.github/SECURITY.md @@ -6,9 +6,10 @@ Release versions that will receive security updates. | Version | Supported | | ------- | --------- | -| 3.x | ✅ | -| 2.x | ❌ | -| 1.x | ❌ | +| 1.x | ❌ | +| 2.x | ❌ | +| 3.x | ❌ | +| 4.x | ✅ | ## Reporting a vulnerability diff --git a/.gitignore b/.gitignore index dcc5186..b4cc876 100644 --- a/.gitignore +++ b/.gitignore @@ -1,12 +1,12 @@ # directories -.vscode/ node_modules/ -logs/ -site/ +dist/ # files -.env +.env* version -user/config.js +user/config.yml user/database.sqlite -user/plugins/*/ \ No newline at end of file +*.log +*.lock +*-lock.* \ No newline at end of file diff --git a/user/example.config.yml b/user/example.config.yml new file mode 100644 index 0000000..8e614f8 --- /dev/null +++ b/user/example.config.yml @@ -0,0 +1,22 @@ +##################################################### +## ____ _ ## +## | _ \ (_) ___ ___ ___ _ __ __| | ## +## | | | | | | / __| / __| / _ \ | '__| / _` | ## +## | |_| | | | \__ \ | (__ | (_) | | | | (_| | ## +## |____/ |_| |___/ \___| \___/ |_| \__,_| ## +## _____ _ _ ## +## |_ _| (_) ___ | | __ ___ | |_ ___ ## +## | | | | / __| | |/ / / _ \ | __| / __| ## +## | | | | | (__ | < | __/ | |_ \__ \ ## +## |_| |_| \___| |_|\_\ \___| \__| |___/ ## +## ## +## Documentation: https://discordtickets.app ## +## Support: https://go.eartharoid.me/discord ## +##################################################### + +logs: + files: + enabled: true + keepFor: 30 # days + split: true # split stdout (info) and stderr (warnings & errors) into separate files? + level: info \ No newline at end of file