Skip to content

Files

Latest commit

 

History

History
21 lines (14 loc) · 803 Bytes

no-reserved-keywords.md

File metadata and controls

21 lines (14 loc) · 803 Bytes

Pattern: Use of reserved keyword

Issue: -

Description

Deprecated - This rule can be replaced with TSLint's variable-name.

Do not use reserved keywords as names of local variables, fields, functions, or other identifiers. Since version 2.0.9 this rule accepts a parameter called allow-quoted-properties. If true, interface properties in quotes will be ignored. This can be a useful way to avoid verbose suppress-warning comments for generated d.ts files.

This rule has some overlap with the tslint variable-name rule; however, the rule here finds more keywords and more usages.

Further Reading