eslint-plugin-node
eslint-plugin-node copied to clipboard
no-unsupported-features/node-builtin should detect unsupported usage of `fs.rmDir`
The following is supported from Node v12 onwards:
fs.rmDir("myRandomDir", { recursive: true });
It'd be awesome if no-unsupported-features/node-builtin caught this.
For reference: https://github.com/blitz-js/blitz/pull/454