Skip to content

lib: Enhance use of Set with primordials

Hello :D (i'm back) For this PR I have added Set in the primordials eslint

And i just have created a line in "/lib/.eslintrc.yaml".

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

And just add Set.

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

I hope this new PR will help you :x

Merge request reports

Loading