lib: Replace Symbol global by the primordials Symbol
Update some file to replace Symbol global object to the Symbol primordials.
And i just have created a line in "/lib/.eslintrc.yaml".
rules:
no-restricted-globals:
- name: Symbol
message: "Use `const { Symbol } = primordials;` instead of the global."
Next, just adding : Symbol to every
const {
// [...]
Symbol,
} = primordials;
This task was given to me by @targos thanks