Skip to content

Commit

Permalink
eslint.config.mjs and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Jun 23, 2024
1 parent 8d77c04 commit 08de4b1
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 38 deletions.
32 changes: 0 additions & 32 deletions .eslintrc.js

This file was deleted.

4 changes: 2 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.*
minified
test
test*
data
coverage
Gruntfile.js
test*
eslint.config.mjs
!test
36 changes: 36 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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"}]
}
},
{
files: ["test/*.js"],
languageOptions: {
globals: {
describe: "readonly",
it: "readonly",
before: "readonly",
after: "readonly"
}
}
}
];
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jzz-midi-gm",
"version": "1.3.7",
"version": "1.3.8",
"description": "General MIDI / GM2 / GS / XG instrument names",
"main": "javascript/JZZ.midi.GM.js",
"scripts": {
Expand All @@ -18,15 +18,15 @@
],
"author": "jazz-soft (https://jazz-soft.net/)",
"dependencies": {
"jzz": "^1.8.4"
"jzz": "^1.8.5"
},
"devDependencies": {
"eslint": "^9.3.0",
"eslint": "^9.5.0",
"grunt": "^1.6.1",
"grunt-contrib-jshint": "^3.2.0",
"grunt-contrib-uglify": "^5.2.2",
"mocha": "^10.4.0",
"nyc": "^15.1.0"
"nyc": "^17.0.0"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 08de4b1

Please sign in to comment.