Implement no floating promises on eslint rules
This commit is contained in:
parent
6c6a7e6fe4
commit
c573e9fbaf
@ -25,6 +25,7 @@
|
||||
],
|
||||
"rules": {
|
||||
"no-unused-vars": "off",
|
||||
"@typescript-eslint/no-floating-promises": "error",
|
||||
"@typescript-eslint/no-explicit-any": "error"
|
||||
}
|
||||
}
|
||||
|
@ -47,7 +47,10 @@ function formData(
|
||||
if (typeof options.tmpDir === "string") {
|
||||
if (typeof options.filename === "function") filename = options.filename(filename);
|
||||
const fileToSave = join(options.tmpDir, filename);
|
||||
mkdirp(dirname(fileToSave));
|
||||
mkdirp(dirname(fileToSave)).then(
|
||||
() => {},
|
||||
() => {}
|
||||
);
|
||||
|
||||
file.pipe(createWriteStream(fileToSave));
|
||||
value.filePath = fileToSave;
|
||||
|
Loading…
Reference in New Issue
Block a user