Nucleic Photon Magnetizer
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    tslint-angularpublic

    Angular TSLint Preset

    A preset with TSLint rules for development of Angular applications. The preset contains both, tslint core rules, and codelyzer rules, which are going to perform Angular specific linting.

    This package is based on the tslint configuration of Angular CLI and aligns with the Angular style guide.

    Note: there are few more rules added on top of the Angular CLI configuration:

    "angular-whitespace"[true, "check-interpolation"],
    "use-view-encapsulation"true,
    "contextual-life-cycle"true,
    "banana-in-box"true,

    How to use?

    npm i tslint-angular --save-dev

    After that configure tslint.json to use the preset:

    {
      "extends": ["tslint-angular"],
      "rules": {
        "directive-selector": [true, "attribute", "foo", "camelCase"],
        "component-selector": [true, "element", "foo", "kebab-case"]
      }
    }

    Notice that directive-selector and component-selector are configurable so you need to add them manually in the rules section of tslint.json.

    License

    MIT

    install

    npm i tslint-angular

    Downloadslast 7 days

    3,455

    version

    1.1.1

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar