Skip to content

Commit eb11b5b

Browse files
authored
chore: upgrade globals v15 (#241)
* fix: failing tests Signed-off-by: 唯然 <[email protected]> * Update eslint-rule-tester.js --------- Signed-off-by: 唯然 <[email protected]>
1 parent 2ecee79 commit eb11b5b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"enhanced-resolve": "^5.15.0",
2121
"eslint-plugin-es-x": "^7.5.0",
2222
"get-tsconfig": "^4.7.0",
23-
"globals": "^14.0.0",
23+
"globals": "^15.0.0",
2424
"ignore": "^5.2.4",
2525
"minimatch": "^9.0.0",
2626
"semver": "^7.5.3"

tests/eslint-rule-tester.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ const defaultConfig = {
2323
languageOptions: {
2424
ecmaVersion: 6,
2525
sourceType: "commonjs",
26-
globals: globals.node,
26+
// TODO: remove global.es2105 when dropping eslint v8 -- it has been fixed in eslint v9
27+
// see: https://github.com/eslint/eslint/commit/0db676f9c64d2622ada86b653136d2bda4f0eee0
28+
globals: { ...globals.es2015, ...globals.node },
2729
},
2830
}
2931
exports.RuleTester = function (config = defaultConfig) {

0 commit comments

Comments
 (0)