File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ module.exports = {
33
33
next : 'multiline-block-like' ,
34
34
} ,
35
35
] ,
36
+
36
37
// It's common for scripts to access `process.env`
37
38
'node/no-process-env' : 'off' ,
38
39
} ,
@@ -46,6 +47,18 @@ module.exports = {
46
47
{
47
48
files : [ '*.test.ts' ] ,
48
49
extends : [ '@metamask/eslint-config-jest' ] ,
50
+
51
+ settings : {
52
+ jest : {
53
+ // This package uses Vitest, but `@metamask/eslint-config-vitest` is
54
+ // only available for ESLint 9+. The Jest rules are similar enough,
55
+ // but we need to explicitly set the Jest version since we're not
56
+ // using the `jest` package directly.
57
+ // TODO: Remove this when migrating to
58
+ // `@metamask/eslint-config-vitest`.
59
+ version : 29 ,
60
+ } ,
61
+ } ,
49
62
} ,
50
63
] ,
51
64
Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ import { withMonorepoProjectEnvironment } from '../tests/functional/helpers/with
2
2
import { buildChangelog } from '../tests/helpers.js' ;
3
3
4
4
describe (
5
+ // This is valid with Vitest.
6
+ // TODO: Remove this when migrating to `@metamask/eslint-config-vitest`.
7
+ // eslint-disable-next-line jest/valid-describe-callback
5
8
'create-release-branch (functional)' ,
6
9
{
7
10
timeout : 10_000 ,
You can’t perform that action at this time.
0 commit comments