Why is this an issue?

Initially, TypeScript defined "internal modules" and "external modules":

However, in order to avoid confusion with similarly named terms, module was deprecated in favor of the namespace keyword, and "external modules" became simply "modules", as to align with ECMAScript 2015’s terminology.

Now that namespace is available, the use of module is deprecated because it does the same thing, and its use could confuse maintainers unaware of the history of the language. Therefore, the use of module is discouraged in TypeScript code.

module myMod {  // Noncompliant
  // ...
}

Anywhere the module keyword was used when declaring an internal module, the namespace keyword should be used instead.

namespace myMod {
  // ...
}

Resources

Documentation