no-data
TSLint rules to prevent usage of the word "data" in variables and function names
Usage
Install:
npm install --save-dev no-data
In your tslint.json
:
Available Rules
no-data-in-variable
The word data is not allowed when declaring variable via const
let
or var
no-data-in-class
The word data is not allowed in class names and class properties.
Options
allow-class-name
: allow the word data in class names.allow-class-properties
: allow the word data in class properties.
Example Usage
- This will show warning when
data
appear in class name or property name.
- This will show warning when
data
appear in property name only.
Future work
- Disallow in function arguments.