From 0b8c6074d2127a8cd935bc790a5bec3bc0aca2d5 Mon Sep 17 00:00:00 2001 From: LucasB25#7323 <50886682+LucasB25@users.noreply.github.com> Date: Thu, 16 May 2024 18:04:12 +0200 Subject: [PATCH] v0.5.0 --- .eslintignore | 7 ++ .eslintrc.json | 94 +++++++++++++++++++++++++++ .github/workflows/FUNDING.yml | 4 ++ .github/workflows/codeql.yml | 75 +++++++++++++++++++++ .gitignore | 9 +++ .hintrc | 8 +++ .prettierignore | 7 ++ .prettierrc.json | 12 ++++ README.md | 108 +++++++++++++++++++++++++++++++ package.json | 59 +++++++++++++++++ src/events/client/ClientReady.ts | 18 ++++++ tsconfig.json | 21 ++++++ 12 files changed, 422 insertions(+) create mode 100644 .eslintignore create mode 100644 .eslintrc.json create mode 100644 .github/workflows/FUNDING.yml create mode 100644 .github/workflows/codeql.yml create mode 100644 .gitignore create mode 100644 .hintrc create mode 100644 .prettierignore create mode 100644 .prettierrc.json create mode 100644 README.md create mode 100644 package.json create mode 100644 src/events/client/ClientReady.ts create mode 100644 tsconfig.json diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..4b21a2a --- /dev/null +++ b/.eslintignore @@ -0,0 +1,7 @@ +# Folders +/.cache +/.git +/dist +/node_modules +.eslintcache +yarn.lock \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..f49619b --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,94 @@ +{ + "root": true, + "parser": "@typescript-eslint/parser", + "parserOptions": { + "project": "./tsconfig.json" + }, + "plugins": ["@typescript-eslint", "import", "unicorn"], + "extends": [ + "eslint:recommended", + "plugin:@typescript-eslint/recommended", + "plugin:@typescript-eslint/recommended-requiring-type-checking", + "plugin:import/recommended", + "plugin:import/typescript" + ], + "rules": { + "@typescript-eslint/explicit-function-return-type": [ + "error", + { + "allowExpressions": true + } + ], + "@typescript-eslint/no-explicit-any": "off", + "@typescript-eslint/no-floating-promises": "off", + "@typescript-eslint/no-inferrable-types": [ + "error", + { + "ignoreParameters": true + } + ], + "@typescript-eslint/no-misused-promises": "off", + "@typescript-eslint/no-unsafe-argument": "off", + "@typescript-eslint/no-unsafe-assignment": "off", + "@typescript-eslint/no-unsafe-call": "off", + "@typescript-eslint/no-unsafe-member-access": "off", + "@typescript-eslint/no-unsafe-return": "off", + "@typescript-eslint/no-unused-vars": [ + "error", + { + "argsIgnorePattern": "^_", + "varsIgnorePattern": "^_" + } + ], + "@typescript-eslint/no-var-requires": "off", + "@typescript-eslint/require-await": "off", + "@typescript-eslint/restrict-template-expressions": "off", + "@typescript-eslint/return-await": ["error", "always"], + "@typescript-eslint/typedef": [ + "error", + { + "parameter": true, + "propertyDeclaration": true + } + ], + "import/extensions": ["error", "ignorePackages"], + "import/no-extraneous-dependencies": "error", + "import/no-unresolved": "off", + "import/no-useless-path-segments": "error", + "import/order": [ + "error", + { + "alphabetize": { + "caseInsensitive": true, + "order": "asc" + }, + "groups": [ + ["builtin", "external", "object", "type"], + ["internal", "parent", "sibling", "index"] + ], + "newlines-between": "always" + } + ], + "no-return-await": "off", + "no-unused-vars": "off", + "prefer-const": "off", + "quotes": [ + "error", + "single", + { + "allowTemplateLiterals": true + } + ], + "sort-imports": [ + "error", + { + "allowSeparatedGroups": true, + "ignoreCase": true, + "ignoreDeclarationSort": true, + "ignoreMemberSort": false, + "memberSyntaxSortOrder": ["none", "all", "multiple", "single"] + } + ], + "unicorn/prefer-node-protocol": "error" + } +} diff --git a/.github/workflows/FUNDING.yml b/.github/workflows/FUNDING.yml new file mode 100644 index 0000000..538c7cc --- /dev/null +++ b/.github/workflows/FUNDING.yml @@ -0,0 +1,4 @@ +# These are supported funding model platforms + +github: LucasB25 +custom: ['https://www.paypal.me/battistoloL'] diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..04dd677 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,75 @@ +# For most projects, this workflow file will not need changing; you simply need +# to commit it to your repository. +# +# You may wish to alter this file to override the set of languages analyzed, +# or to provide custom queries or build logic. +# +# ******** NOTE ******** +# We have attempted to detect the languages in your repository. Please check +# the `language` matrix defined below to confirm you have the correct set of +# supported CodeQL languages. +# +name: 'CodeQL' + +on: + push: + branches: ['main'] + pull_request: + # The branches below must be a subset of the branches above + branches: ['main'] + schedule: + - cron: '18 20 * * 3' + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: ['javascript'] + # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] + # Use only 'java' to analyze code written in Java, Kotlin or both + # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both + # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. + + # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs + # queries: security-extended,security-and-quality + + # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java). + # If this step fails, then you should remove it and run the build manually (see below) + - name: Autobuild + uses: github/codeql-action/autobuild@v3 + + # โน๏ธ Command-line programs to run using the OS shell. + # ๐ See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun + + # If the Autobuild fails above, remove it and uncomment the following three lines. + # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. + + # - run: | + # echo "Run, Build Application using script" + # ./location_of_script_within_repo/buildscript.sh + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: '/language:${{matrix.language}}' diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b950435 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +# Folders +/.cache +/.git +/dist +/node_modules +.eslintcache +.env +package-lock.json +yarn.lock \ No newline at end of file diff --git a/.hintrc b/.hintrc new file mode 100644 index 0000000..12c4655 --- /dev/null +++ b/.hintrc @@ -0,0 +1,8 @@ +{ + "extends": [ + "development" + ], + "hints": { + "typescript-config/strict": "off" + } +} \ No newline at end of file diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..4b21a2a --- /dev/null +++ b/.prettierignore @@ -0,0 +1,7 @@ +# Folders +/.cache +/.git +/dist +/node_modules +.eslintcache +yarn.lock \ No newline at end of file diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..ad2cf87 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,12 @@ +{ + "printWidth": 100, + "tabWidth": 4, + "useTabs": false, + "semi": true, + "singleQuote": true, + "quoteProps": "as-needed", + "trailingComma": "es5", + "bracketSpacing": true, + "arrowParens": "avoid", + "endOfLine": "auto" +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..6fcfc9a --- /dev/null +++ b/README.md @@ -0,0 +1,108 @@ +
AikouTicket and TypeScript.
+
+
+ Serveur Support
+ ยท
+ Report Bug & Request Feature
+