diff --git a/package.json b/package.json index 250ccd5f..908b3957 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "enhanced-resolve": "^5.15.0", "eslint-plugin-es-x": "^7.5.0", "get-tsconfig": "^4.7.0", - "globals": "^14.0.0", + "globals": "^15.0.0", "ignore": "^5.2.4", "minimatch": "^9.0.0", "semver": "^7.5.3" diff --git a/tests/eslint-rule-tester.js b/tests/eslint-rule-tester.js index e4379ba1..28a4e95f 100644 --- a/tests/eslint-rule-tester.js +++ b/tests/eslint-rule-tester.js @@ -23,7 +23,9 @@ const defaultConfig = { languageOptions: { ecmaVersion: 6, sourceType: "commonjs", - globals: globals.node, + // TODO: remove global.es2105 when dropping eslint v8 -- it has been fixed in eslint v9 + // see: https://github.com/eslint/eslint/commit/0db676f9c64d2622ada86b653136d2bda4f0eee0 + globals: { ...globals.es2015, ...globals.node }, }, } exports.RuleTester = function (config = defaultConfig) {