Update files

This commit is contained in:
Isaac 2022-03-18 12:54:33 +00:00
parent 83e7ff6019
commit 7ecf71f8f3
4 changed files with 60 additions and 25 deletions

View File

@ -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'
]
}
],
},
};

7
.github/SECURITY.md vendored
View File

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

12
.gitignore vendored
View File

@ -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/*/
*.log
*.lock
*-lock.*

22
user/example.config.yml Normal file
View File

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