Skip to content

lib: replace Float32Array global by the primordials

Hello, For this PR I have added Float32Array in the primordials eslint And i just have created a line in "/lib/.eslintrc.yaml".

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

And just add Set.

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

I hope this new PR will help you :x

Merge request reports

Loading