Skip to content

Commit fb9bc2c

Browse files
Changes as suggested in review
Update ci workflow with currently supported NodeJS version Add variable to catch statement Add appropriate eslint-disable directive
1 parent ca9d31a commit fb9bc2c

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
node-version: [12.x, 14.x, 16.x, 17.x]
16+
node-version: [22.x, 24.x, 25.x]
1717

1818
steps:
1919
- uses: actions/checkout@v2

eslint.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import globals from "globals";
22
import { defineConfig } from "eslint/config";
33

44
export default defineConfig([
5-
{ files: ["**/*.{js,mjs,cjs}"], languageOptions: { globals: {...globals.browser, ...globals.node, ...globals.worker, ...globals.jest} } },
5+
{ files: ["**/*.{js,mjs,cjs}"], languageOptions: { globals: {...globals.browser, ...globals.node, ...globals.worker} } },
6+
{ files: ["test/**/*.{js,mjs,cjs}"], languageOptions: { globals: globals.jest } },
67
{
78
"rules": {
89
"indent": [

src/js.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ let custom_inspect_symbol;
8686
if (typeof process !== "undefined") {
8787
try { /* for node.js */
8888
custom_inspect_symbol = require('util').inspect.custom;
89-
} catch {}
89+
} catch (e) {} // eslint-disable-line no-unused-vars
9090
}
9191

9292
const global_env = (function(Object) {

0 commit comments

Comments
 (0)