# eslint-plugin-rules-angular

> ES Lint rules for Angular for checking no translation and native use of private variables

Latest version **1.0.1** (published 2023-11-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-plugin-rules-angular
pnpm add eslint-plugin-rules-angular
yarn add eslint-plugin-rules-angular
bun add eslint-plugin-rules-angular
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2023-11-09 |
| First published | 2023-11-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 18.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ansuman Mishra |
| Maintainers | ansuman |
| Keywords | ES Lint, Angular |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-rules-angular
- Repository: https://github.com/ansumanmishra/eslint-plugin-rules-angular
- Homepage: https://github.com/ansumanmishra/eslint-plugin-rules-angular#readme
- Issues: https://github.com/ansumanmishra/eslint-plugin-rules-angular/issues
- npm.io page: https://npm.io/package/eslint-plugin-rules-angular

## Dependencies (2)

- [@typescript-eslint/utils](https://npm.io/package/@typescript-eslint/utils.md) ^6.1.0
- [@angular-eslint/template-parser](https://npm.io/package/@angular-eslint/template-parser.md) ^16.3.1

## 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
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2023-11-09
- 1.0.0 — 2023-11-09
- 0.0.3 — 2023-11-09
- 0.0.1 — 2023-11-08

## README

## ES custom Linting Rules for Angular
### This ES Lint rule checks for
    - Texts without translation using "transloco"
    - Usage of # instead of using private keyword for defining properties and methods

#### Installation:

```code
    npm i eslint-plugin-rules-angular
```

#### Usage
To check texts without translations

```json
    {
        "files": [
            "*.html"
        ],
        "rules": {
            "rules-angular/no-translation": "error"
        },
        "plugins": ["rules-angular"]
    }
```

To check native use of private variables

```json
    {
        "files": [
            "*.ts"
        ],
        "rules": {
            "rules-angular/no-private-keyword": "error",
        },
        "plugins": ["rules-angular"]
    }
```

#### Note
If the installation fails with version conflicts, use "--force" flag
```code
    npm i eslint-plugin-rules-angular --force
```

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