Skip to content

A5sys/AngularTslintRules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
      ]
    }],

About

Extra rules for tslint with angular

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published