https://github.com/a5sys/angulartslintrules
Extra rules for tslint with angular
https://github.com/a5sys/angulartslintrules
angular tslint
Last synced: 3 months ago
JSON representation
Extra rules for tslint with angular
- Host: GitHub
- URL: https://github.com/a5sys/angulartslintrules
- Owner: A5sys
- License: mit
- Created: 2018-04-24T15:12:04.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-11T11:05:44.000Z (almost 2 years ago)
- Last Synced: 2025-02-20T08:12:43.175Z (4 months ago)
- Topics: angular, tslint
- Language: TypeScript
- Size: 25.4 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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"
]
}],
```