workflow: disable lint restrictions in tests

This commit is contained in:
Evan You 2020-06-12 15:59:05 -04:00
parent e76ed4c269
commit f39ad0b539

View File

@ -18,6 +18,14 @@ module.exports = {
] ]
}, },
overrides: [ overrides: [
// tests, no restrictions (runs in Node / jest with jsdom)
{
files: ['**/__tests__/**'],
rules: {
'no-restricted-globals': 'off',
'no-restricted-syntax': 'off'
}
},
// Packages targeting DOM // Packages targeting DOM
{ {
files: ['packages/{vue,runtime-dom}/**'], files: ['packages/{vue,runtime-dom}/**'],
@ -33,7 +41,7 @@ module.exports = {
'no-restricted-syntax': 'off' 'no-restricted-syntax': 'off'
} }
}, },
// Private package, no syntax restrictions // Private package, browser only + no syntax restrictions
{ {
files: ['packages/template-explorer/**'], files: ['packages/template-explorer/**'],
rules: { rules: {