Skip to content

Commit f39ad0b

Browse files
committed
workflow: disable lint restrictions in tests
1 parent e76ed4c commit f39ad0b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.eslintrc.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ module.exports = {
1818
]
1919
},
2020
overrides: [
21+
// tests, no restrictions (runs in Node / jest with jsdom)
22+
{
23+
files: ['**/__tests__/**'],
24+
rules: {
25+
'no-restricted-globals': 'off',
26+
'no-restricted-syntax': 'off'
27+
}
28+
},
2129
// Packages targeting DOM
2230
{
2331
files: ['packages/{vue,runtime-dom}/**'],
@@ -33,7 +41,7 @@ module.exports = {
3341
'no-restricted-syntax': 'off'
3442
}
3543
},
36-
// Private package, no syntax restrictions
44+
// Private package, browser only + no syntax restrictions
3745
{
3846
files: ['packages/template-explorer/**'],
3947
rules: {

0 commit comments

Comments
 (0)