mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix bad imports of node-fetch
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
e8bc887f0b
commit
58cbf5f300
3 files changed
+32
-3
No files matched your search
@@ -296,5 +296,22 @@ module.exports = {
|
||||
}],
|
||||
},
|
||||
},
|
||||
{
|
||||
files: [
|
||||
"src/**/*.ts",
|
||||
"src/**/*.tsx",
|
||||
],
|
||||
rules: {
|
||||
"@typescript-eslint/no-restricted-imports": ["error", {
|
||||
"paths": [
|
||||
{
|
||||
"name": "node-fetch",
|
||||
"allowTypeImports": true,
|
||||
"message": "node-fetch@v3 is an ESM package and there cannot be directly imported.",
|
||||
},
|
||||
],
|
||||
}],
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
Reference in new issue
Block a user