test: __dirname
はESModuleでは使えないので置き換えた (#8626)
This commit is contained in:
parent
b2a5076d14
commit
ebb4308a5c
6 changed files with 53 additions and 23 deletions
|
@ -16,6 +16,17 @@ module.exports = {
|
|||
'position': 'after'
|
||||
}
|
||||
],
|
||||
}]
|
||||
}],
|
||||
'no-restricted-globals': [
|
||||
'error',
|
||||
{
|
||||
'name': '__dirname',
|
||||
'message': 'Not in ESModule. Use `import.meta.url` instead.'
|
||||
},
|
||||
{
|
||||
'name': '__filename',
|
||||
'message': 'Not in ESModule. Use `import.meta.url` instead.'
|
||||
}
|
||||
]
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue