Skip to content

Commit 9275296

Browse files
update eslintrc to add globals for tests.
1 parent 21215c3 commit 9275296

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.eslintrc.cjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,14 @@ module.exports = {
3030
'quotes': ['off'],
3131
'semi': ['error', 'always'],
3232
},
33+
overrides: [
34+
{
35+
files: 'test/**/*.test.js',
36+
globals: {
37+
'describe': 'readonly',
38+
'expect': 'readonly',
39+
'it': 'readonly',
40+
},
41+
},
42+
],
3343
};

0 commit comments

Comments
 (0)