test: __dirname
はESModuleでは使えないので置き換えた (#8626)
This commit is contained in:
@@ -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.'
|
||||
}
|
||||
]
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user