Skip to content

lib: enhance use of Map with primordials

Hello, Now, in this PR I have added Map in the primordials eslint so have created a line in "/lib/.eslintrc.yaml".

rules:
  no-restricted-globals:
  - name: Map
        message: "Use `const { Map } = primordials;` instead of the global."

And just import Map in some file :).

const {
  // [...]
  Map,
} = primordials;

I hope this new PR will help you :x

Merge request reports

Loading