# tslint-no-data

> TSLint rules to disallow the use of "data" as variable or function name

Latest version **1.3.1** (published 2019-05-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install tslint-no-data
pnpm add tslint-no-data
yarn add tslint-no-data
bun add tslint-no-data
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.1 |
| Published | 2019-05-22 |
| First published | 2019-05-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 14.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | omardev |
| Maintainers | omardev |
| Keywords | tslint |

## Links

- npm: https://www.npmjs.com/package/tslint-no-data
- Repository: https://github.com/chefomar/no-data
- Homepage: https://github.com/chefomar/no-data#readme
- Issues: https://github.com/chefomar/no-data/issues
- npm.io page: https://npm.io/package/tslint-no-data

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 1.3.1 (latest) — 2019-05-22
- 1.2.2 — 2019-05-22
- 1.2.0 — 2019-05-22
- 1.1.1 — 2019-05-13
- 1.1.0 — 2019-05-13
- 1.0.0 — 2019-05-13

## README

# 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`:
```json
{
  "rulesDirectory": [
    "node_modules/no-data/dist"
  ],
  "rules": {
    "no-data-in-variable": true,
    "no-data-in-class": true
  }
}
```

## 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.
```json
{
  "rules": {
    "no-data-in-class": true
  }
}
```
- This will show warning when `data` appear in property name only.
```json
{
  "rules": {
    "no-data-in-class": [true, "allow-class-name"]
  }
}
```


## Future work
- [ ] Disallow in function arguments.

---
_Source: https://npm.io/package/tslint-no-data · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
