Fix bad imports of node-fetch

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2023-01-10 15:18:11 -05:00
1 parent e8bc887f0b
commit 58cbf5f300
3 files changed
+32 -3

No files matched your search

+17
View File
@@ -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.",
},
],
}],
},
},
],
};