1.0.1 • Published 6 years ago

@a5sys/angular-tslint-rules v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

AngularTslintRules

Extra rules for tslint with angular

Enable the rule in your tslint.json:

  "class-suffix": true,

class-suffix

This rule check that the Typescript files contains a combination of prefix + '.' + suffix.

Example: 'app.module.ts', 'app.component.ts', 'app.component.spec.ts'

You can use custom the rule:

 "class-suffix": [true, {
      "prefix": [
        "component",
        "service",
        "module",
        "directive",
        "model",
        "pipe",
        "tools"
      ],
      "suffix": [
        "ts",
        "spec.ts",
      ],
      "ignore": [
        "public_api.ts"
      ]
    }],
1.0.1

6 years ago

1.0.0

6 years ago