ESLint plugin
This project is maintained by iliubinskii
ESLint plugin / prefer-const-require
Requires “require()” to be assigned to variable.
module.exports = {
plugins: ["misc"],
rules: {
"misc/prefer-const-require": "error"
}
};
function f() { return require("node:path"); }
const path = require("node:path");