Skip to content

Commit

Permalink
chore: upgrade globals v15 (#241)
Browse files Browse the repository at this point in the history
* fix: failing tests

Signed-off-by: 唯然 <[email protected]>

* Update eslint-rule-tester.js

---------

Signed-off-by: 唯然 <[email protected]>
  • Loading branch information
aladdin-add authored Apr 17, 2024
1 parent 2ecee79 commit eb11b5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 3 additions & 1 deletion tests/eslint-rule-tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit eb11b5b

Please sign in to comment.