mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[eslint/import-resolver] ensure compat with slightly older versions of node for IDE support
(cherry picked from commit 0ad665f216
)
This commit is contained in:
parent
fedf042577
commit
5096f77e00
1 changed files with 8 additions and 5 deletions
|
@ -34,11 +34,14 @@ function initContext(file, config) {
|
|||
}
|
||||
|
||||
function tryNodeResolver(importRequest, file, config) {
|
||||
return nodeResolver.resolve(importRequest, file, {
|
||||
...config,
|
||||
extensions: ['.js', '.json'],
|
||||
isFile,
|
||||
});
|
||||
return nodeResolver.resolve(
|
||||
importRequest,
|
||||
file,
|
||||
Object.assign({}, config, {
|
||||
extensions: ['.js', '.json'],
|
||||
isFile,
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
exports.resolve = function resolveKibanaPath(importRequest, file, config) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue