1.0.1 • Published 6 months ago

eslint-plugin-rules-angular v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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:

    npm i eslint-plugin-rules-angular

Usage

To check texts without translations

    {
        "files": [
            "*.html"
        ],
        "rules": {
            "rules-angular/no-translation": "error"
        },
        "plugins": ["rules-angular"]
    }

To check native use of private variables

    {
        "files": [
            "*.ts"
        ],
        "rules": {
            "rules-angular/no-private-keyword": "error",
        },
        "plugins": ["rules-angular"]
    }

Note

If the installation fails with version conflicts, use "--force" flag

    npm i eslint-plugin-rules-angular --force
1.0.1

6 months ago

1.0.0

6 months ago

0.0.3

6 months ago

0.0.1

6 months ago