Skip to content
This repository has been archived by the owner on Jan 19, 2019. It is now read-only.

Latest commit

 

History

History
22 lines (13 loc) · 932 Bytes

prefer-namespace-keyword.md

File metadata and controls

22 lines (13 loc) · 932 Bytes

Require the use of the namespace keyword instead of the module keyword to declare custom TypeScript modules. (prefer-namespace-keyword)

In an effort to prevent further confusion between custom TypeScript modules and the new ES2015 modules, starting with TypeScript v1.5 the keyword namespace is now the preferred way to declare custom TypeScript modules.

Rule Details

This rule aims to standardise the way modules are declared.

When Not To Use It

If you are using the ES2015 module syntax, then you will not need this rule.

Further Reading

Compatibility