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 = { module.exports = {
'env': { 'env': {
'commonjs': true, 'browser': false,
'es2021': true, 'commonjs': false,
'node': true 'es6': true,
'node': true,
}, },
'extends': 'eslint:recommended', 'extends': ['eslint:recommended'],
'parser': '@typescript-eslint/parser',
'parserOptions': { 'ecmaVersion': 12 }, 'parserOptions': { 'ecmaVersion': 12 },
'root': true,
'rules': { 'rules': {
'@typescript-eslint/no-var-requires': ['off'],
'array-bracket-newline': [ 'array-bracket-newline': [
'error', 'error',
'consistent' 'consistent'
@ -37,13 +41,19 @@ module.exports = {
], ],
'comma-dangle': [ 'comma-dangle': [
'error', 'error',
'never' {
'arrays': 'never',
'exports': 'never',
'functions': 'never',
'imports': 'never',
'objects': 'always-multiline',
}
], ],
'comma-spacing': [ 'comma-spacing': [
'error', 'error',
{ {
'after': true, 'after': true,
'before': false 'before': false,
} }
], ],
'comma-style': [ 'comma-style': [
@ -96,12 +106,11 @@ module.exports = {
'ignoreStrings': true, 'ignoreStrings': true,
'ignoreTemplateLiterals': true, 'ignoreTemplateLiterals': true,
'ignoreTrailingComments': true, 'ignoreTrailingComments': true,
'ignoreUrls': true 'ignoreUrls': true,
} }
], ],
'max-lines': [ 'max-lines': [
'warn', 'warn'
500
], ],
'max-statements-per-line': [ 'max-statements-per-line': [
'error' 'error'
@ -110,7 +119,7 @@ module.exports = {
'warn' 'warn'
], ],
'no-console': [ 'no-console': [
'warn' 'off'
], ],
'no-return-assign': [ 'no-return-assign': [
'error' 'error'
@ -122,7 +131,10 @@ module.exports = {
'error' 'error'
], ],
'no-underscore-dangle': [ 'no-underscore-dangle': [
'error' 'error', {
'allowAfterThis': true,
'allowFunctionParams': true,
}
], ],
'no-unneeded-ternary': [ 'no-unneeded-ternary': [
'error' 'error'
@ -137,7 +149,7 @@ module.exports = {
'error', 'error',
{ {
'minProperties': 2, 'minProperties': 2,
'multiline': true 'multiline': true,
} }
], ],
'object-curly-spacing': [ 'object-curly-spacing': [
@ -157,7 +169,7 @@ module.exports = {
'error', 'error',
{ {
'destructuring': 'all', 'destructuring': 'all',
'ignoreReadBeforeAssign': false 'ignoreReadBeforeAssign': false,
} }
], ],
'quotes': [ 'quotes': [
@ -184,6 +196,6 @@ module.exports = {
'spaced-comment': [ 'spaced-comment': [
'error', 'error',
'always' 'always'
] ],
} },
}; };

5
.github/SECURITY.md vendored
View File

@ -6,9 +6,10 @@ Release versions that will receive security updates.
| Version | Supported | | Version | Supported |
| ------- | --------- | | ------- | --------- |
| 3.x | ✅ |
| 2.x | ❌ |
| 1.x | ❌ | | 1.x | ❌ |
| 2.x | ❌ |
| 3.x | ❌ |
| 4.x | ✅ |
## Reporting a vulnerability ## Reporting a vulnerability

12
.gitignore vendored
View File

@ -1,12 +1,12 @@
# directories # directories
.vscode/
node_modules/ node_modules/
logs/ dist/
site/
# files # files
.env .env*
version version
user/config.js user/config.yml
user/database.sqlite 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