lib: enhance use of Error from primordials
Hello, Now, in this PR I have added Error in the primordials eslint so have created a line in "/lib/.eslintrc.yaml".
rules:
no-restricted-globals:
- name: Error
message: "Use `const { Error } = primordials;` instead of the global."
And just import Error :).
const {
// [...]
Error,
} = primordials;
I hope this new PR will help you :x