From a8efa9f49f39ff19386a72a75467a4708f3d3d77 Mon Sep 17 00:00:00 2001 From: Sema Date: Thu, 29 Aug 2024 19:04:26 -0400 Subject: [PATCH] Dependencies and cleanup --- .eslintrc.js | 35 ----------------------------------- .github/workflows/build.yml | 8 ++++---- eslint.config.mjs | 37 +++++++++++++++++++++++++++++++++++++ package.json | 18 +++++++++--------- 4 files changed, 50 insertions(+), 48 deletions(-) delete mode 100644 .eslintrc.js create mode 100644 eslint.config.mjs diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index cd82a95..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1,35 +0,0 @@ -module.exports = { - "env": { - "browser": true, - "es6": true, - "node": true - }, - "extends": "eslint:recommended", - "parserOptions": { - "ecmaVersion": 5 - }, - "overrides": [ - { - "files": ["test/*"], - "globals": { - "before": "readonly", - "after": "readonly", - "describe": "readonly", - "it": "readonly" - }, - "rules": { - "no-console" : "off" - } - }, - { - "files": ["javascript/*"], - "globals": { - "JZZ": "readonly", - "define": "readonly" - }, - "rules": { - "no-empty" : ["warn", { "allowEmptyCatch": true }] - } - } - ] -}; \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e0e2720..0109641 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,13 +4,13 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: '18.x' + node-version: '20.x' - run: npm install - run: npm test - run: npm run coverage - - uses: coverallsapp/github-action@master + - uses: coverallsapp/github-action@v2 with: github-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 0000000..4a997d7 --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,37 @@ +import globals from "globals"; +import js from "@eslint/js"; + +export default [ + js.configs.recommended, + { + ignores: ["**/.instrumented/*"] + }, + { + files: ["javascript/*.js", "test/*.js"], + languageOptions: { + ecmaVersion: 2015, + globals: { + ...globals.browser, + ...globals.node, + define: "readonly", + JZZ: "readonly" + } + }, + rules: { + "no-prototype-builtins": "off", + "no-unused-vars": ["error", { caughtErrors: "none"}], + "no-empty" : ["warn", { "allowEmptyCatch": true }] + } + }, + { + files: ["test/*.js"], + languageOptions: { + globals: { + describe: "readonly", + it: "readonly", + before: "readonly", + after: "readonly" + } + } + } +]; \ No newline at end of file diff --git a/package.json b/package.json index 8b901c6..f432f0f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jzz-gui-karaoke", - "version": "1.2.9", + "version": "1.3.0", "description": "Karaoke MIDI Player", "main": "javascript/JZZ.gui.Karaoke.js", "scripts": { @@ -16,19 +16,19 @@ ], "author": "jazz-soft (https://jazz-soft.net/)", "dependencies": { - "jzz": "^1.7.7", - "jzz-midi-smf": "^1.8.4" + "jzz": "^1.8.5", + "jzz-midi-smf": "^1.9.4" }, "devDependencies": { - "eslint": "^8.56.0", + "eslint": "^9.9.1", "grunt": "^1.6.1", "grunt-contrib-jshint": "^3.2.0", "grunt-contrib-uglify": "^5.2.2", - "jsdom": "^23.2.0", - "jzz-gui-player": "^1.7.0", - "jzz-synth-tiny": "^1.3.7", - "mocha": "^10.2.0", - "nyc": "^15.1.0" + "jsdom": "^25.0.0", + "jzz-gui-player": "^1.7.4", + "jzz-synth-tiny": "^1.4.1", + "mocha": "^10.7.3", + "nyc": "^17.0.0" }, "repository": { "type": "git",