mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-05 12:23:09 +02:00
95f76716ed
* feat: make command handler slash command-ready Only `help` and `settings` commands work so far * feat(commands): finish new settings command * fix(settings): convert `roles` and `ping` to an array * fix(commands): make `add` a slash command * fix(commands): make `blacklist` a slash command * fix(commands): remove URLs from `help` command * Add weblate badge and overview image * Update sponsors * sqlite things * imrpovements * update eslint rules * (⚠ untested) close command * fix: default locale for getting command option names * Update README.md * Update README.md * Update README.md * update new command to slash commands and fix close command * fixes and improvements * fix: closing a ticket when the creator has left * Revert "fix: closing a ticket when the creator has left" This reverts commit afc40ae17077782e344fd8cee03a089966c2347e. * fix: closing a ticket when the creator has left * fix: localisation issues in settings command * fix: delete category channel * New button and select panels + updated message panels Includes new options for panel embed message image and thumbnail Co-Authored-By: Puneet Gopinath <baalkrshna@gmail.com> Co-Authored-By: thevisuales <6569806+thevisuales@users.noreply.github.com> * Finish converting to buttons, added close button Co-Authored-By: Puneet Gopinath <baalkrshna@gmail.com> Co-Authored-By: thevisuales <6569806+thevisuales@users.noreply.github.com> * fully convert to slash commands * re-add "... has created a ticket" message * locales * fix add and remove commands * fix remove command * fix stats command * eslint Co-authored-by: Puneet Gopinath <baalkrshna@gmail.com> Co-authored-by: thevisuales <6569806+thevisuales@users.noreply.github.com>
189 lines
2.6 KiB
JavaScript
189 lines
2.6 KiB
JavaScript
module.exports = {
|
|
'env': {
|
|
'commonjs': true,
|
|
'es2021': true,
|
|
'node': true
|
|
},
|
|
'extends': 'eslint:recommended',
|
|
'parserOptions': { 'ecmaVersion': 12 },
|
|
'rules': {
|
|
'array-bracket-newline': [
|
|
'error',
|
|
'consistent'
|
|
],
|
|
'array-bracket-spacing': [
|
|
'error',
|
|
'never'
|
|
],
|
|
'array-element-newline': [
|
|
'error',
|
|
'consistent'
|
|
],
|
|
'arrow-body-style': [
|
|
'error',
|
|
'as-needed'
|
|
],
|
|
'arrow-parens': [
|
|
'error',
|
|
'as-needed'
|
|
],
|
|
'block-spacing': [
|
|
'error',
|
|
'always'
|
|
],
|
|
'brace-style': [
|
|
'error',
|
|
'1tbs'
|
|
],
|
|
'comma-dangle': [
|
|
'error',
|
|
'never'
|
|
],
|
|
'comma-spacing': [
|
|
'error',
|
|
{
|
|
'after': true,
|
|
'before': false
|
|
}
|
|
],
|
|
'comma-style': [
|
|
'error',
|
|
'last'
|
|
],
|
|
'computed-property-spacing': [
|
|
'error',
|
|
'never'
|
|
],
|
|
'curly': [
|
|
'error',
|
|
'multi-line', // 'multi'
|
|
'consistent'
|
|
],
|
|
'default-case-last': [
|
|
'error'
|
|
],
|
|
'dot-location': [
|
|
'error',
|
|
'property'
|
|
],
|
|
'dot-notation': [
|
|
'error'
|
|
],
|
|
'eqeqeq': [
|
|
'error'
|
|
],
|
|
'func-call-spacing': [
|
|
'error',
|
|
'never'
|
|
],
|
|
'indent': [
|
|
'error',
|
|
'tab'
|
|
],
|
|
'linebreak-style': [
|
|
'off',
|
|
'windows'
|
|
],
|
|
'max-depth': [
|
|
'warn',
|
|
{ 'max': 5 }
|
|
],
|
|
'max-len': [
|
|
'warn',
|
|
{
|
|
'code': 150,
|
|
'ignoreRegExpLiterals': true,
|
|
'ignoreStrings': true,
|
|
'ignoreTemplateLiterals': true,
|
|
'ignoreTrailingComments': true,
|
|
'ignoreUrls': true
|
|
}
|
|
],
|
|
'max-lines': [
|
|
'warn',
|
|
500
|
|
],
|
|
'max-statements-per-line': [
|
|
'error'
|
|
],
|
|
'multiline-comment-style': [
|
|
'warn'
|
|
],
|
|
'no-console': [
|
|
'warn'
|
|
],
|
|
'no-return-assign': [
|
|
'error'
|
|
],
|
|
'no-template-curly-in-string': [
|
|
'warn'
|
|
],
|
|
'no-trailing-spaces': [
|
|
'error'
|
|
],
|
|
'no-underscore-dangle': [
|
|
'error'
|
|
],
|
|
'no-unneeded-ternary': [
|
|
'error'
|
|
],
|
|
'no-var': [
|
|
'error'
|
|
],
|
|
'no-whitespace-before-property': [
|
|
'error'
|
|
],
|
|
'object-curly-newline': [
|
|
'error',
|
|
{
|
|
'minProperties': 2,
|
|
'multiline': true
|
|
}
|
|
],
|
|
'object-curly-spacing': [
|
|
'error',
|
|
'always'
|
|
],
|
|
'object-property-newline': [
|
|
'error'
|
|
],
|
|
'operator-linebreak': [
|
|
'error'
|
|
],
|
|
'prefer-arrow-callback': [
|
|
'error'
|
|
],
|
|
'prefer-const': [
|
|
'error',
|
|
{
|
|
'destructuring': 'all',
|
|
'ignoreReadBeforeAssign': false
|
|
}
|
|
],
|
|
'quotes': [
|
|
'error',
|
|
'single'
|
|
],
|
|
'rest-spread-spacing': [
|
|
'error',
|
|
'never'
|
|
],
|
|
'semi': [
|
|
'error',
|
|
'always'
|
|
],
|
|
'sort-keys': [
|
|
'error',
|
|
'asc',
|
|
{ 'natural': true }
|
|
],
|
|
'space-in-parens': [
|
|
'error',
|
|
'never'
|
|
],
|
|
'spaced-comment': [
|
|
'error',
|
|
'always'
|
|
]
|
|
}
|
|
}; |