workflow: disable lint restrictions in tests
This commit is contained in:
parent
e76ed4c269
commit
f39ad0b539
10
.eslintrc.js
10
.eslintrc.js
@ -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: {
|
||||||
|
Loading…
Reference in New Issue
Block a user