You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Follow up nodejs/node#37302.
This PR suppress the following Node.js warning.
```console
% node -v
v18.10.0
% cd path/to/eslint
% node Makefile mocha
Running unit tests
(snip)
(node:63796) [DEP0147] DeprecationWarning: In future versions of Node.js,
fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead
(Use `node --trace-deprecation ...` to show where the warning was created)
```
And added compatibility condition to prevent the following error when using Node.js 13 or lower.
```console
% node -v
v13.14.0
% npx mocha tests/lib/eslint/flat-eslint.js
(snip)
1) FlatESLint
lintFiles()
multiple processors
"after each" hook for "should lint only JavaScript blocks.":
TypeError: fsp.rm is not a function
```
0 commit comments