Skip to content

Commit 545b543

Browse files
authored
Merge pull request #182 from NerdyTechy/rewrite
Melody V2 Rewrite
2 parents 65ae265 + 5bda23b commit 545b543

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+7614
-5633
lines changed

.eslintignore

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
.github
2-
emojis
3-
node_modules
4-
logs
1+
.github/
2+
emojis/
3+
dist/
4+
logs/
5+
node_modules/

.eslintrc.json

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,24 @@
11
{
2+
"parser": "@typescript-eslint/parser",
23
"parserOptions": {
3-
"ecmaVersion": "latest"
4+
"ecmaVersion": "latest",
5+
"sourceType": "module"
46
},
57
"env": {
68
"node": true,
79
"es6": true
810
},
9-
"extends": ["eslint:recommended"],
11+
"extends": ["eslint:recommended", "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended"],
12+
"plugins": ["@typescript-eslint"],
1013
"rules": {
11-
"semi": "error",
14+
"semi": "warn",
1215
"quotes": ["warn", "double"],
1316
"no-dupe-args": "error",
1417
"no-dupe-else-if": "error",
15-
"no-use-before-define": [
16-
"error",
17-
{
18-
"functions": false,
19-
"classes": true,
20-
"variables": true,
21-
"allowNamedExports": false
22-
}
23-
],
2418
"no-unreachable-loop": "error",
2519
"no-unreachable": "error",
26-
"no-duplicate-imports": "error"
20+
"no-duplicate-imports": "error",
21+
"@typescript-eslint/no-var-requires": "off",
22+
"@typescript-eslint/no-explicit-any": "off"
2723
}
2824
}

.github/FUNDING.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
# These are supported funding model platforms
2-
31
github: NerdyTechy
42
custom: ['https://buymeacoffee.com/techy', 'https://techy.lol/stripe', 'https://techy.lol/revivenode']

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ A clear and concise description of what the bug is. When providing error message
1212

1313
**To Reproduce**
1414
Steps to reproduce the behaviour:
15-
1. Use...
16-
2. Click...
17-
4. See error
15+
1. ...
16+
2. ...
17+
3. ...
1818

1919
**Expected behaviour**
2020
A clear and concise description of what you expected to happen.

.github/workflows/codeql.yml

Lines changed: 2 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
1-
# For most projects, this workflow file will not need changing; you simply need
2-
# to commit it to your repository.
3-
#
4-
# You may wish to alter this file to override the set of languages analyzed,
5-
# or to provide custom queries or build logic.
6-
#
7-
# ******** NOTE ********
8-
# We have attempted to detect the languages in your repository. Please check
9-
# the `language` matrix defined below to confirm you have the correct set of
10-
# supported CodeQL languages.
11-
#
121
name: "CodeQL"
132

143
on:
154
push:
16-
branches: [ "master", "beta" ]
5+
branches: [ "master", "develop" ]
176
pull_request:
18-
# The branches below must be a subset of the branches above
19-
branches: [ "master", "beta" ]
7+
branches: [ "master", "develop" ]
208
schedule:
219
- cron: '40 4 * * 3'
2210

@@ -28,46 +16,19 @@ jobs:
2816
actions: read
2917
contents: read
3018
security-events: write
31-
3219
strategy:
3320
fail-fast: false
3421
matrix:
3522
language: [ 'javascript' ]
36-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37-
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
38-
3923
steps:
4024
- name: Checkout repository
4125
uses: actions/checkout@v3
42-
43-
# Initializes the CodeQL tools for scanning.
4426
- name: Initialize CodeQL
4527
uses: github/codeql-action/init@v2
4628
with:
4729
languages: ${{ matrix.language }}
48-
# If you wish to specify custom queries, you can do so here or in a config file.
49-
# By default, queries listed here will override any specified in a config file.
50-
# Prefix the list here with "+" to use these queries and those in the config file.
51-
52-
# 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
53-
# queries: security-extended,security-and-quality
54-
55-
56-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
57-
# If this step fails, then you should remove it and run the build manually (see below)
5830
- name: Autobuild
5931
uses: github/codeql-action/autobuild@v2
60-
61-
# ℹ️ Command-line programs to run using the OS shell.
62-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
63-
64-
# If the Autobuild fails above, remove it and uncomment the following three lines.
65-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
66-
67-
# - run: |
68-
# echo "Run, Build Application using script"
69-
# ./location_of_script_within_repo/buildscript.sh
70-
7132
- name: Perform CodeQL Analysis
7233
uses: github/codeql-action/analyze@v2
7334
with:

.github/workflows/eslint.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: "ESLint"
2+
3+
on:
4+
push:
5+
branches: [ "master", "develop" ]
6+
pull_request:
7+
branches: [ "master", "develop" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Install modules
15+
run: npm install
16+
- name: Run ESLint
17+
run: eslint . --ext .js,.jsx,.ts,.tsx

.gitignore

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
config.yml
2-
/src/data.json
3-
node_modules
1+
dist/
2+
logs/
3+
node_modules/
44
.DS_Store
5-
/logs
5+
config.yml
6+
data.json

.prettierignore

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
.github
2-
emojis
3-
logs
1+
.github/
2+
emojis/
3+
dist/
4+
logs/
5+
node_modules/

.prettierrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2+
"printWidth": 500,
23
"trailingComma": "es5",
34
"tabWidth": 4,
45
"semi": true,
56
"singleQuote": false,
6-
"bracketSpacing": true,
7-
"printWidth": 10000
7+
"bracketSpacing": true
88
}

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"editor.defaultFormatter": "esbenp.prettier-vscode",
3+
"editor.formatOnPaste": true,
4+
"editor.formatOnSave": true
5+
}

0 commit comments

Comments
 (0)