Skip to content

Files

Latest commit

 

History

History
13 lines (7 loc) · 389 Bytes

no-var-requires.md

File metadata and controls

13 lines (7 loc) · 389 Bytes

Pattern: Use of require

Issue: -

Description

Disallows the use of require statements except in import statements.

In other words, the use of forms such as var module = require("module") are banned. Instead use ES6 style imports or import foo = require('foo') imports.

Further Reading