I have a promise chain and I need to write to a file using `fs.writeFile` after the chain is executed. As far as I can see, `finally` accepts a Promise as a return type:

```
finally(onfinally?: (() => void) | undefined | null): Promise<T>

```

But looking at my code, `eslint` doesn't seem to like it:

My Code:
--------

```
    return this.downloadProject(data)
      .finally(() => {
        return fse.writeFile('', 'foo');
      })

```

VSCode:
-------

[![enter image description here](https://i.stack.imgur.com/75a3O.png)](https://i.stack.imgur.com/75a3O.png)

Is this caused by a misconfiguration of my Eslint or is this a code smell?