sisoe24 / Nuke-Tools

Detected the use of require statements except in import statements JS-0359
Anti-pattern
Major
5 months ago3 years old
Require statement not part of import statement
17
18// Linux: prevent a weird NPE when mocha on Linux requires the window size from the TTY
19// Since we are not running in a tty environment, we just implementt he method statically
20const tty = require("tty");21if (!tty.getWindowSize) {
22    tty.getWindowSize = (): number[] => {
23        return [80, 75];